MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / startQueryProfile

Function startQueryProfile

source code/utils/queryProfiler.ts:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 * Start profiling a new query session
51 */
52export function startQueryProfile(): void {
53 if (!ENABLED) return
54
55 const perf = getPerformance()
56
57 // Clear previous marks and memory snapshots
58 perf.clearMarks()
59 memorySnapshots.clear()
60 firstTokenTime = null
61
62 queryCount++
63
64 // Record the start checkpoint
65 queryCheckpoint('query_user_input_received')
66}
67
68/**
69 * Record a checkpoint with the given name

Callers 2

handlePromptSubmitFunction · 0.85
drainCommandQueueFunction · 0.85

Calls 3

getPerformanceFunction · 0.85
queryCheckpointFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected