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

Function startQueryProfile

src/utils/queryProfiler.ts:50–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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