(nextUnitOfWork)
| 7062 | } |
| 7063 | |
| 7064 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7065 | if (enableUserTimingAPI) { |
| 7066 | currentFiber = nextUnitOfWork; |
| 7067 | if (!supportsUserTiming) { |
| 7068 | return; |
| 7069 | } |
| 7070 | commitCountInCurrentWorkLoop = 0; |
| 7071 | // This is top level call. |
| 7072 | // Any other measurements are performed within. |
| 7073 | beginMark('(React Tree Reconciliation)'); |
| 7074 | // Resume any measurements that were in progress during the last loop. |
| 7075 | resumeTimers(); |
| 7076 | } |
| 7077 | } |
| 7078 | |
| 7079 | function stopWorkLoopTimer(interruptedBy) { |
| 7080 | if (enableUserTimingAPI) { |
no test coverage detected