Skip to content

charton API


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

Interface: RenderStats ​

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

What one rendered frame cost, as chart.frameStats and the frame:render event report it.

Extends ​

Properties ​

bufferBytes ​

bufferBytes: number

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

Bytes sent by those calls.

Inherited from ​

FrameCounters.bufferBytes


bufferUploads ​

bufferUploads: number

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

bufferData and bufferSubData calls.

Inherited from ​

FrameCounters.bufferUploads


drawCalls ​

drawCalls: number

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

Draw calls issued.

Inherited from ​

FrameCounters.drawCalls


gpuTime ​

gpuTime: number | null

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

GPU milliseconds spent on the GPU-rendered series, from the newest frame whose measurement has come back (usually two or three frames old, since the chart never waits for the GPU). Null when the browser lacks the timer query extension or no measurement has come back yet.


instances ​

instances: number

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

Instances drawn, summed over draw calls (a non-instanced draw counts as one).

Inherited from ​

FrameCounters.instances


kind ​

kind: "overlay" | "scene" | "cursor"

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

'scene' redrew every layer; 'overlay' redrew only the drawings, labels and crosshair; 'cursor' only the crosshair layer (a crosshair move).


memory ​

memory: GpuMemory

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

GPU memory held after the frame.


reasons ​

reasons: RedrawReason[]

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

What asked for this frame since the previous one, in RedrawReason order. Empty for frames nothing asked for, such as the first one or a screenshot.


textureBytes ​

textureBytes: number

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

Bytes sent by those calls.

Inherited from ​

FrameCounters.textureBytes


textureUploads ​

textureUploads: number

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

texImage2D and texSubImage2D calls.

Inherited from ​

FrameCounters.textureUploads


times ​

times: FrameTimes

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