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

Function profileCheckpoint

source code/utils/startupProfiler.ts:67–77  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

65 * Record a checkpoint with the given name
66 */
67export function profileCheckpoint(name: string): void {
68 if (!SHOULD_PROFILE) return
69
70 const perf = getPerformance()
71 perf.mark(name)
72
73 // Only capture memory when detailed profiling enabled (env var)
74 if (DETAILED_PROFILING) {
75 memorySnapshots.push(process.memoryUsage())
76 }
77}
78
79/**
80 * 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 1

getPerformanceFunction · 0.85

Tested by

no test coverage detected