(nextUnitOfWork)
| 7831 | } |
| 7832 | |
| 7833 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7834 | if (enableUserTimingAPI) { |
| 7835 | currentFiber = nextUnitOfWork; |
| 7836 | if (!supportsUserTiming) { |
| 7837 | return; |
| 7838 | } |
| 7839 | commitCountInCurrentWorkLoop = 0; |
| 7840 | // This is top level call. |
| 7841 | // Any other measurements are performed within. |
| 7842 | beginMark('(React Tree Reconciliation)'); |
| 7843 | // Resume any measurements that were in progress during the last loop. |
| 7844 | resumeTimers(); |
| 7845 | } |
| 7846 | } |
| 7847 | |
| 7848 | function stopWorkLoopTimer(interruptedBy) { |
| 7849 | if (enableUserTimingAPI) { |
no test coverage detected