MCPcopy
hub / github.com/claude-code-best/claude-code / profileCheckpoint

Function profileCheckpoint

src/utils/startupProfiler.ts:65–75  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

63 * Record a checkpoint with the given name
64 */
65export function profileCheckpoint(name: string): void {
66 if (!SHOULD_PROFILE) return
67
68 const perf = getPerformance()
69 perf.mark(name)
70
71 // Only capture memory when detailed profiling enabled (env var)
72 if (DETAILED_PROFILING) {
73 memorySnapshots.push(process.memoryUsage())
74 }
75}
76
77/**
78 * Get a formatted report of all checkpoints

Callers 13

main.tsxFile · 0.85
eagerLoadSettingsFunction · 0.85
mainFunction · 0.85
runFunction · 0.85
setupFunction · 0.85
startupProfiler.tsFile · 0.85
initializeTelemetryFunction · 0.85
loadSettingsFromDiskFunction · 0.85
getSettingsWithErrorsFunction · 0.85
startMdmSettingsLoadFunction · 0.85
mainFunction · 0.85
init.tsFile · 0.85

Calls 3

getPerformanceFunction · 0.85
markMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected