(nextUnitOfWork)
| 7989 | } |
| 7990 | |
| 7991 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7992 | if (enableUserTimingAPI) { |
| 7993 | currentFiber = nextUnitOfWork; |
| 7994 | if (!supportsUserTiming) { |
| 7995 | return; |
| 7996 | } |
| 7997 | commitCountInCurrentWorkLoop = 0; |
| 7998 | // This is top level call. |
| 7999 | // Any other measurements are performed within. |
| 8000 | beginMark('(React Tree Reconciliation)'); |
| 8001 | // Resume any measurements that were in progress during the last loop. |
| 8002 | resumeTimers(); |
| 8003 | } |
| 8004 | } |
| 8005 | |
| 8006 | function stopWorkLoopTimer(interruptedBy) { |
| 8007 | if (enableUserTimingAPI) { |
no test coverage detected