MCPcopy
hub / github.com/codeaashu/claude-code / startStreamingLatencyMeasurement

Function startStreamingLatencyMeasurement

web/lib/performance/metrics.ts:138–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 * end();
137 */
138export function startStreamingLatencyMeasurement(): () => void {
139 const start = performance.now();
140 return () => {
141 const value = performance.now() - start;
142 report({ name: "streaming_token_latency_ms", value });
143 };
144}
145
146/** Monitor scroll FPS during user scrolling. Returns a cleanup fn. */
147export function monitorScrollFps(element: HTMLElement): () => void {

Callers

nothing calls this directly

Calls 1

reportFunction · 0.85

Tested by

no test coverage detected