MCPcopy Create free account
hub / github.com/Noumena-Network/code / profileCheckpoint

Function profileCheckpoint

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

Source from the content-addressed store, hash-verified

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