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

Function clipped

perf/trace.mjs:98–98  ·  view source on GitHub ↗
(from, to)

Source from the content-addressed store, hash-verified

96 }
97 let totals = {script: 0, style: 0, layout: 0, paint: 0, gc: 0, other: 0, forced: 0};
98 let clipped = (from, to) => Math.max(0, Math.min(to, end.ts) - Math.max(from, begin.ts));
99 let visit = (slice, inherited, inScript) => {
100 let own = classify(slice.name);
101 let bucket = inherited === 'gc' ? 'gc' : (own ?? inherited ?? 'other');

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected