(nextUnitOfWork)
| 7732 | } |
| 7733 | |
| 7734 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7735 | if (enableUserTimingAPI) { |
| 7736 | currentFiber = nextUnitOfWork; |
| 7737 | if (!supportsUserTiming) { |
| 7738 | return; |
| 7739 | } |
| 7740 | commitCountInCurrentWorkLoop = 0; |
| 7741 | // This is top level call. |
| 7742 | // Any other measurements are performed within. |
| 7743 | beginMark('(React Tree Reconciliation)'); |
| 7744 | // Resume any measurements that were in progress during the last loop. |
| 7745 | resumeTimers(); |
| 7746 | } |
| 7747 | } |
| 7748 | |
| 7749 | function stopWorkLoopTimer(interruptedBy) { |
| 7750 | if (enableUserTimingAPI) { |
no test coverage detected