(start, end)
| 19 | dur: (end - start) * 1000 |
| 20 | }); |
| 21 | const window = (start, end) => [ |
| 22 | {name: 'bench:window', ph: 'b', pid: 1, tid: 1, id2: {local: '0x1'}, ts: start * 1000}, |
| 23 | {name: 'bench:window', ph: 'e', pid: 1, tid: 1, id2: {local: '0x1'}, ts: end * 1000} |
| 24 | ]; |
| 25 | |
| 26 | test('main-thread time is split by the innermost event within the window', () => { |
| 27 | let summary = summarizeTrace({ |