Interface: WaterfallHandle
Defined in: stats/waterfall.ts:206
Properties
heatmap
heatmap: HeatmapLayer;Defined in: stats/waterfall.ts:207
rowSeconds
rowSeconds: number;Defined in: stats/waterfall.ts:211
Seconds one row covers.
span
span: number;Defined in: stats/waterfall.ts:213
Seconds of history the axis spans.
values
values: Float64Array;Defined in: stats/waterfall.ts:209
The history grid, cols * rows, row 0 at the bottom (the oldest row).
Methods
now()
now(): number;Defined in: stats/waterfall.ts:215
Clock of the newest row — the top of the time axis.
Returns
number
push()
push(column, time?): void;Defined in: stats/waterfall.ts:221
Newest column in: the history ages one row down. Without time the clock advances by rowSeconds; with it, that row is stamped and the time axis switches to interpolating the stamps it holds.
Parameters
| Parameter | Type |
|---|---|
column | ArrayLike<number> |
time? | number |
Returns
void
reset()
reset(): void;Defined in: stats/waterfall.ts:225
Wipe the history back to fill and restart the clock at startTime.
Returns
void
setTimeAxis()
setTimeAxis(opts): void;Defined in: stats/waterfall.ts:223
Re-label the time axis — swap the format, the tick count or the title.
Parameters
| Parameter | Type |
|---|---|
opts | { count?: number; format?: TimeFormat | ((seconds) => string); title?: string; } |
opts.count? | number |
opts.format? | TimeFormat | ((seconds) => string) |
opts.title? | string |
Returns
void