MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / logPerf

Function logPerf

electron/main.js:57–67  ·  view source on GitHub ↗
(event, data = {})

Source from the content-addressed store, hash-verified

55}
56
57function logPerf(event, data = {}) {
58 if (!perfLogEnabled) return
59 try {
60 const stream = getPerfLogStream()
61 if (!stream) return
62 const entry = { ts: Date.now(), event, source: 'main', ...data }
63 stream.write(`${JSON.stringify(entry)}\n`)
64 } catch (err) {
65 console.error('[Perf] log failed:', err.message)
66 }
67}
68
69function stripJsonComments(input) {
70 let output = ''

Callers 1

main.jsFile · 0.85

Calls 1

getPerfLogStreamFunction · 0.85

Tested by

no test coverage detected