MCPcopy
hub / github.com/ChartGPU/ChartGPU / PerformanceTrackingState

Interface PerformanceTrackingState

src/worker/ChartGPUWorkerController.ts:77–92  ·  view source on GitHub ↗

* Performance tracking state for a chart instance. * Circular buffer pattern for exact FPS measurement.

Source from the content-addressed store, hash-verified

75 * Circular buffer pattern for exact FPS measurement.
76 */
77interface PerformanceTrackingState {
78 frameTimestamps: Float64Array;
79 frameTimestampIndex: number;
80 frameTimestampCount: number;
81 totalFrames: number;
82 totalDroppedFrames: number;
83 consecutiveDroppedFrames: number;
84 lastDropTimestamp: number;
85 startTime: number;
86 lastFrameTime: number;
87
88 // GPU timing (optional)
89 gpuTimingEnabled: boolean;
90 lastCPUTime: number;
91 lastGPUTime: number;
92}
93
94/**
95 * Mutable state flags for a chart instance.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected