MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / recordMainPerf

Function recordMainPerf

apps/desktop/src/main/perf.ts:4–12  ·  view source on GitHub ↗
(
  name: string,
  durationMs: number,
  detail?: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

2 process.env['NODE_ENV'] !== 'production' || process.env['ZEN_PERF'] === '1'
3
4export function recordMainPerf(
5 name: string,
6 durationMs: number,
7 detail?: Record<string, unknown>
8): void {
9 if (!MAIN_PERF_ENABLED) return
10 const rounded = Math.round(durationMs * 100) / 100
11 console.info(`[zen:perf] ${name} ${rounded.toFixed(1)}ms`, detail ?? {})
12}

Callers 4

createWindowFunction · 0.90
openFloatingNoteWindowFunction · 0.90
listNotesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected