(interruptedBy)
| 7114 | } |
| 7115 | |
| 7116 | function stopWorkLoopTimer(interruptedBy) { |
| 7117 | if (enableUserTimingAPI) { |
| 7118 | if (!supportsUserTiming) { |
| 7119 | return; |
| 7120 | } |
| 7121 | var warning$$1 = null; |
| 7122 | if (interruptedBy !== null) { |
| 7123 | if (interruptedBy.tag === HostRoot) { |
| 7124 | warning$$1 = 'A top-level update interrupted the previous render'; |
| 7125 | } else { |
| 7126 | var componentName = getComponentName(interruptedBy) || 'Unknown'; |
| 7127 | warning$$1 = 'An update to ' + componentName + ' interrupted the previous render'; |
| 7128 | } |
| 7129 | } else if (commitCountInCurrentWorkLoop > 1) { |
| 7130 | warning$$1 = 'There were cascading updates'; |
| 7131 | } |
| 7132 | commitCountInCurrentWorkLoop = 0; |
| 7133 | // Pause any measurements until the next loop. |
| 7134 | pauseTimers(); |
| 7135 | endMark('(React Tree Reconciliation)', '(React Tree Reconciliation)', warning$$1); |
| 7136 | } |
| 7137 | } |
| 7138 | |
| 7139 | function startCommitTimer() { |
| 7140 | if (enableUserTimingAPI) { |
no test coverage detected