(interruptedBy)
| 8004 | } |
| 8005 | |
| 8006 | function stopWorkLoopTimer(interruptedBy) { |
| 8007 | if (enableUserTimingAPI) { |
| 8008 | if (!supportsUserTiming) { |
| 8009 | return; |
| 8010 | } |
| 8011 | var warning$$1 = null; |
| 8012 | if (interruptedBy !== null) { |
| 8013 | if (interruptedBy.tag === HostRoot) { |
| 8014 | warning$$1 = 'A top-level update interrupted the previous render'; |
| 8015 | } else { |
| 8016 | var componentName = getComponentName(interruptedBy) || 'Unknown'; |
| 8017 | warning$$1 = 'An update to ' + componentName + ' interrupted the previous render'; |
| 8018 | } |
| 8019 | } else if (commitCountInCurrentWorkLoop > 1) { |
| 8020 | warning$$1 = 'There were cascading updates'; |
| 8021 | } |
| 8022 | commitCountInCurrentWorkLoop = 0; |
| 8023 | // Pause any measurements until the next loop. |
| 8024 | pauseTimers(); |
| 8025 | endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1); |
| 8026 | } |
| 8027 | } |
| 8028 | |
| 8029 | function startCommitTimer() { |
| 8030 | if (enableUserTimingAPI) { |
no test coverage detected