MCPcopy Create free account
hub / github.com/reactjs/react-rails / startWorkLoopTimer

Function startWorkLoopTimer

lib/assets/react-source/development/react.js:14177–14192  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

14175 }
14176 }
14177 function startWorkLoopTimer(nextUnitOfWork) {
14178 {
14179 currentFiber = nextUnitOfWork;
14180
14181 if (!supportsUserTiming) {
14182 return;
14183 }
14184
14185 commitCountInCurrentWorkLoop = 0; // This is top level call.
14186 // Any other measurements are performed within.
14187
14188 beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.
14189
14190 resumeTimers();
14191 }
14192 }
14193 function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
14194 {
14195 if (!supportsUserTiming) {

Callers 2

performSyncWorkOnRootFunction · 0.85

Calls 2

beginMarkFunction · 0.85
resumeTimersFunction · 0.85

Tested by

no test coverage detected