MCPcopy Index your code
hub / github.com/microsoft/SandDance / stopWorkLoopTimer

Function stopWorkLoopTimer

docs/external/js/react-dom.development.js:10621–10646  ·  view source on GitHub ↗
(interruptedBy, didCompleteRoot)

Source from the content-addressed store, hash-verified

10619 }
10620 }
10621 function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
10622 {
10623 if (!supportsUserTiming) {
10624 return;
10625 }
10626
10627 var warning = null;
10628
10629 if (interruptedBy !== null) {
10630 if (interruptedBy.tag === HostRoot) {
10631 warning = 'A top-level update interrupted the previous render';
10632 } else {
10633 var componentName = getComponentName(interruptedBy.type) || 'Unknown';
10634 warning = "An update to " + componentName + " interrupted the previous render";
10635 }
10636 } else if (commitCountInCurrentWorkLoop > 1) {
10637 warning = 'There were cascading updates';
10638 }
10639
10640 commitCountInCurrentWorkLoop = 0;
10641 var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop.
10642
10643 pauseTimers();
10644 endMark(label, '(React Tree Reconciliation)', warning);
10645 }
10646 }
10647 function startCommitTimer() {
10648 {
10649 if (!supportsUserTiming) {

Callers 2

Calls 3

pauseTimersFunction · 0.85
endMarkFunction · 0.85
getComponentNameFunction · 0.70

Tested by

no test coverage detected