(interruptedBy)
| 7788 | } |
| 7789 | |
| 7790 | function stopWorkLoopTimer(interruptedBy) { |
| 7791 | if (enableUserTimingAPI) { |
| 7792 | if (!supportsUserTiming) { |
| 7793 | return; |
| 7794 | } |
| 7795 | var warning$$1 = null; |
| 7796 | if (interruptedBy !== null) { |
| 7797 | if (interruptedBy.tag === HostRoot) { |
| 7798 | warning$$1 = 'A top-level update interrupted the previous render'; |
| 7799 | } else { |
| 7800 | var componentName = getComponentName(interruptedBy) || 'Unknown'; |
| 7801 | warning$$1 = 'An update to ' + componentName + ' interrupted the previous render'; |
| 7802 | } |
| 7803 | } else if (commitCountInCurrentWorkLoop > 1) { |
| 7804 | warning$$1 = 'There were cascading updates'; |
| 7805 | } |
| 7806 | commitCountInCurrentWorkLoop = 0; |
| 7807 | // Pause any measurements until the next loop. |
| 7808 | pauseTimers(); |
| 7809 | endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1); |
| 7810 | } |
| 7811 | } |
| 7812 | |
| 7813 | function startCommitTimer() { |
| 7814 | if (enableUserTimingAPI) { |
no test coverage detected