# Function: summarize()

> **summarize**(`samples`, `budgetMs?`): [`FrameSummary`](../interfaces/FrameSummary.md)

Defined in: [dev/src/session.ts:665](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/session.ts#L665)

Summarise recent frames into what matters: how much headroom the game has, and whether dropped
frames come from the game's own work or from outside it.

## Parameters

### samples

readonly [`FrameSample`](../interfaces/FrameSample.md)[]

### budgetMs?

`number` = `...`

## Returns

[`FrameSummary`](../interfaces/FrameSummary.md)
