()
| 622 | |
| 623 | let remainingFrames = frameCount; |
| 624 | const scheduleNextFrame = () => { |
| 625 | requestFrame(() => { |
| 626 | remainingFrames -= 1; |
| 627 | if (remainingFrames <= 0) { |
| 628 | trace.markPhase(phase, { |
| 629 | ...(data ?? {}), |
| 630 | frameCount, |
| 631 | durationMs: roundDurationMs(now() - startedAt), |
| 632 | }); |
| 633 | return; |
| 634 | } |
| 635 | scheduleNextFrame(); |
| 636 | }); |
| 637 | }; |
| 638 | |
| 639 | scheduleNextFrame(); |
| 640 | } |
no test coverage detected