# Class: FrameStats

Defined in: [core/src/stats.ts:3](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/stats.ts#L3)

Rolling frame timing. `interval` is time between frames (what the player feels);
 `work` is time spent inside `Game.frame` (what the game costs). No allocation per frame.

## Constructors

### Constructor

> **new FrameStats**(`size?`): `FrameStats`

Defined in: [core/src/stats.ts:9](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/stats.ts#L9)

#### Parameters

##### size?

`number` = `120`

#### Returns

`FrameStats`

## Properties

### size

> `readonly` **size**: `number` = `120`

Defined in: [core/src/stats.ts:9](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/stats.ts#L9)

## Accessors

### fps

#### Get Signature

> **get** **fps**(): `number`

Defined in: [core/src/stats.ts:21](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/stats.ts#L21)

##### Returns

`number`

## Methods

### record()

> **record**(`intervalMs`, `workMs`): `void`

Defined in: [core/src/stats.ts:14](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/stats.ts#L14)

#### Parameters

##### intervalMs

`number`

##### workMs

`number`

#### Returns

`void`

***

### summary()

> **summary**(): `object`

Defined in: [core/src/stats.ts:27](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/core/src/stats.ts#L27)

Snapshot for dev overlays, reports and scenarios.

#### Returns

`object`

##### fps

> **fps**: `number`

##### frameMs

> **frameMs**: `number`

##### samples

> **samples**: `number`

##### workMs

> **workMs**: `number`

##### workP95Ms

> **workP95Ms**: `number`
