(nextUnitOfWork)
| 7611 | } |
| 7612 | |
| 7613 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7614 | if (enableUserTimingAPI) { |
| 7615 | currentFiber = nextUnitOfWork; |
| 7616 | if (!supportsUserTiming) { |
| 7617 | return; |
| 7618 | } |
| 7619 | commitCountInCurrentWorkLoop = 0; |
| 7620 | // This is top level call. |
| 7621 | // Any other measurements are performed within. |
| 7622 | beginMark('(React Tree Reconciliation)'); |
| 7623 | // Resume any measurements that were in progress during the last loop. |
| 7624 | resumeTimers(); |
| 7625 | } |
| 7626 | } |
| 7627 | |
| 7628 | function stopWorkLoopTimer(interruptedBy) { |
| 7629 | if (enableUserTimingAPI) { |
no test coverage detected