(nextUnitOfWork)
| 7099 | } |
| 7100 | |
| 7101 | function startWorkLoopTimer(nextUnitOfWork) { |
| 7102 | if (enableUserTimingAPI) { |
| 7103 | currentFiber = nextUnitOfWork; |
| 7104 | if (!supportsUserTiming) { |
| 7105 | return; |
| 7106 | } |
| 7107 | commitCountInCurrentWorkLoop = 0; |
| 7108 | // This is top level call. |
| 7109 | // Any other measurements are performed within. |
| 7110 | beginMark('(React Tree Reconciliation)'); |
| 7111 | // Resume any measurements that were in progress during the last loop. |
| 7112 | resumeTimers(); |
| 7113 | } |
| 7114 | } |
| 7115 | |
| 7116 | function stopWorkLoopTimer(interruptedBy) { |
| 7117 | if (enableUserTimingAPI) { |
no test coverage detected