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

Function summarizePerformanceMetrics

tooling/scripts/perf-desktop-runtime.mjs:501–509  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

499}
500
501function summarizePerformanceMetrics(result) {
502 return {
503 jsHeapUsedMB: round(performanceMetricValue(result, 'JSHeapUsedSize') / (1024 * 1024)),
504 jsHeapTotalMB: round(performanceMetricValue(result, 'JSHeapTotalSize') / (1024 * 1024)),
505 domNodes: Math.round(performanceMetricValue(result, 'Nodes')),
506 documents: Math.round(performanceMetricValue(result, 'Documents')),
507 eventListeners: Math.round(performanceMetricValue(result, 'JSEventListeners'))
508 }
509}
510
511function scriptNameFromUrl(rawUrl) {
512 try {

Callers 1

mainFunction · 0.70

Calls 2

roundFunction · 0.70
performanceMetricValueFunction · 0.70

Tested by

no test coverage detected