(nextUnitOfWork)
| 6971 | } |
| 6972 | |
| 6973 | function startWorkLoopTimer(nextUnitOfWork) { |
| 6974 | if (enableUserTimingAPI) { |
| 6975 | currentFiber = nextUnitOfWork; |
| 6976 | if (!supportsUserTiming) { |
| 6977 | return; |
| 6978 | } |
| 6979 | commitCountInCurrentWorkLoop = 0; |
| 6980 | // This is top level call. |
| 6981 | // Any other measurements are performed within. |
| 6982 | beginMark('(React Tree Reconciliation)'); |
| 6983 | // Resume any measurements that were in progress during the last loop. |
| 6984 | resumeTimers(); |
| 6985 | } |
| 6986 | } |
| 6987 | |
| 6988 | function stopWorkLoopTimer(interruptedBy) { |
| 6989 | if (enableUserTimingAPI) { |
no test coverage detected