MCPcopy Create free account
hub / github.com/adobe/react-spectrum / total

Function total

perf/report.mjs:43–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 let longFrames = sample.longFrames ?? [];
42 let scripts = longFrames.flatMap(frame => frame.scripts);
43 let total = values => (longFrames.length ? values.reduce((sum, value) => sum + value, 0) : null);
44 return {
45 ready: sample.semanticReady - sample.start,
46 opportunity: sample.renderingOpportunity - sample.start,

Callers 1

metricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected