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