(from, to)
| 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'); |