Skip to content

charton API


charton API / @chart-on/core / index / FrameTimes

Interface: FrameTimes ​

Defined in: packages/core/src/render-stats.ts:28

CPU milliseconds spent in each phase of a frame; phases a frame skipped are 0.

Properties ​

autoscale ​

autoscale: number

Defined in: packages/core/src/render-stats.ts:30

Fitting price scales to the visible data.


drawBottom ​

drawBottom: number

Defined in: packages/core/src/render-stats.ts:32

Grid, axes and the series drawn with Canvas2D under the GPU layer.


drawCursor ​

drawCursor: number

Defined in: packages/core/src/render-stats.ts:38

The crosshair layer: crosshair, its axis labels, series crosshair markers and the legend.


drawGL ​

drawGL: number

Defined in: packages/core/src/render-stats.ts:34

Recording the GPU-rendered series (the GPU may finish them later).


drawTop ​

drawTop: number

Defined in: packages/core/src/render-stats.ts:36

Drawings, labels and the other overlay content.


total ​

total: number

Defined in: packages/core/src/render-stats.ts:40

The whole frame, including the phases above.