(nextUnitOfWork)
| 7773 | } |
| 7774 | |
| 7775 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7776 | if (enableUserTimingAPI) { |
| 7777 | currentFiber = nextUnitOfWork; |
| 7778 | if (!supportsUserTiming) { |
| 7779 | return; |
| 7780 | } |
| 7781 | commitCountInCurrentWorkLoop = 0; |
| 7782 | // This is top level call. |
| 7783 | // Any other measurements are performed within. |
| 7784 | beginMark('(React Tree Reconciliation)'); |
| 7785 | // Resume any measurements that were in progress during the last loop. |
| 7786 | resumeTimers(); |
| 7787 | } |
| 7788 | } |
| 7789 | |
| 7790 | function stopWorkLoopTimer(interruptedBy) { |
| 7791 | if (enableUserTimingAPI) { |
no test coverage detected