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

Function getPerformance

src/utils/profilerBase.ts:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let performance: typeof PerformanceType | null = null
13
14export function getPerformance(): typeof PerformanceType {
15 if (!performance) {
16 // eslint-disable-next-line @typescript-eslint/no-require-imports
17 performance = require('perf_hooks').performance
18 }
19 return performance!
20}
21
22export function formatMs(ms: number): string {
23 return ms.toFixed(3)

Callers 10

clearHeadlessMarksFunction · 0.85
logHeadlessProfilerTurnFunction · 0.85
profileCheckpointFunction · 0.85
getReportFunction · 0.85
logStartupPerfFunction · 0.85
startQueryProfileFunction · 0.85
queryCheckpointFunction · 0.85
getQueryProfileReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected