# MiniStatsOptions

Interface · category: Other

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/extras/mini-stats/mini-stats.js#L78

## Properties

### cpu

```ts
cpu: MiniStatsProcessorOptions
```

CPU graph options.

### cpuTimingMinSize

```ts
cpuTimingMinSize?: number
```

Minimum size index at which to show CPU sub-timing
graphs (script, anim, physics, render). Defaults to 1.

### gpu

```ts
gpu: MiniStatsProcessorOptions
```

GPU graph options.

### gpuTimingMinSize

```ts
gpuTimingMinSize?: number
```

Minimum size index at which to show GPU pass timing
graphs. Defaults to 1.

### resourcesCollapsed

```ts
resourcesCollapsed?: boolean
```

Initially collapse the Resources section.

### resourcesEnabled

```ts
resourcesEnabled?: boolean
```

Show tracked resource counts in detailed views.

### sizes

```ts
sizes: MiniStatsSizeOptions[]
```

Sizes of area to render individual graphs in and
spacing between individual graphs.

### startSizeIndex

```ts
startSizeIndex: number
```

Index into sizes array for initial setting.

### stats

```ts
stats: MiniStatsGraphOptions[]
```

Array of options to render additional graphs based
on stats collected into Application.stats. Counters sourced exclusively from AppStats.user
are displayed in a collapsible User section in the detailed views. Other additional counters
are grouped under Engine, including DrawCalls and Frame. VRAM keeps its own category.

### textRefreshRate

```ts
textRefreshRate: number
```

Text update interval and averaging window in ms (500 in the
default options). Each update shows the arithmetic mean and peak of the frame samples collected
since the previous update, then starts a new window. Graph history samples every frame.

### vramTimingMinSize

```ts
vramTimingMinSize?: number
```

Minimum size index at which to show VRAM subcategory
graphs. Defaults to 1.
