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

Function summarizePerformanceMetrics

tooling/scripts/perf-web-runtime.mjs:528–536  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

526}
527
528function summarizePerformanceMetrics(result) {
529 return {
530 jsHeapUsedMB: round(performanceMetricValue(result, 'JSHeapUsedSize') / (1024 * 1024)),
531 jsHeapTotalMB: round(performanceMetricValue(result, 'JSHeapTotalSize') / (1024 * 1024)),
532 domNodes: Math.round(performanceMetricValue(result, 'Nodes')),
533 documents: Math.round(performanceMetricValue(result, 'Documents')),
534 eventListeners: Math.round(performanceMetricValue(result, 'JSEventListeners'))
535 }
536}
537
538function scriptNameFromUrl(rawUrl) {
539 try {

Callers 1

mainFunction · 0.70

Calls 2

roundFunction · 0.70
performanceMetricValueFunction · 0.70

Tested by

no test coverage detected