MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / onPerformanceUpdate

Method onPerformanceUpdate

src/ChartGPU.ts:116–116  ·  view source on GitHub ↗

* Registers a callback to be notified of performance metric updates. * Callback is invoked every frame with the latest metrics. * * @param callback - Function to call with updated metrics * @returns Unsubscribe function to remove the callback

(callback: (metrics: Readonly<PerformanceMetrics>) => void)

Source from the content-addressed store, hash-verified

114 * @returns Unsubscribe function to remove the callback
115 */
116 onPerformanceUpdate(callback: (metrics: Readonly<PerformanceMetrics>) => void): () => void;
117}
118
119// Type-only alias so callsites can write `ChartGPU[]` for chart instances (while `ChartGPU` the value

Callers 2

mainFunction · 0.65
handleGenerateFunction · 0.65

Implementers 1

ChartGPUWorkerProxysrc/worker/ChartGPUWorkerProxy.ts

Calls

no outgoing calls

Tested by

no test coverage detected