MCPcopy Create free account
hub / github.com/microsoft/SandDance / startWorkLoopTimer

Function startWorkLoopTimer

docs/external/js/react-dom.development.js:10605–10620  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

10603 }
10604 }
10605 function startWorkLoopTimer(nextUnitOfWork) {
10606 {
10607 currentFiber = nextUnitOfWork;
10608
10609 if (!supportsUserTiming) {
10610 return;
10611 }
10612
10613 commitCountInCurrentWorkLoop = 0; // This is top level call.
10614 // Any other measurements are performed within.
10615
10616 beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.
10617
10618 resumeTimers();
10619 }
10620 }
10621 function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
10622 {
10623 if (!supportsUserTiming) {

Callers 2

performSyncWorkOnRootFunction · 0.85

Calls 2

beginMarkFunction · 0.85
resumeTimersFunction · 0.85

Tested by

no test coverage detected