(nextUnitOfWork)
| 7876 | } |
| 7877 | |
| 7878 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7879 | if (enableUserTimingAPI) { |
| 7880 | currentFiber = nextUnitOfWork; |
| 7881 | if (!supportsUserTiming) { |
| 7882 | return; |
| 7883 | } |
| 7884 | commitCountInCurrentWorkLoop = 0; |
| 7885 | // This is top level call. |
| 7886 | // Any other measurements are performed within. |
| 7887 | beginMark('(React Tree Reconciliation)'); |
| 7888 | // Resume any measurements that were in progress during the last loop. |
| 7889 | resumeTimers(); |
| 7890 | } |
| 7891 | } |
| 7892 | |
| 7893 | function stopWorkLoopTimer(interruptedBy) { |
| 7894 | if (enableUserTimingAPI) { |
no test coverage detected