MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / startWorkLoopTimer

Function startWorkLoopTimer

code/higher-order-components/public/app.js:7734–7747  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7732}
7733
7734function startWorkLoopTimer(nextUnitOfWork) {
7735 if (enableUserTimingAPI) {
7736 currentFiber = nextUnitOfWork;
7737 if (!supportsUserTiming) {
7738 return;
7739 }
7740 commitCountInCurrentWorkLoop = 0;
7741 // This is top level call.
7742 // Any other measurements are performed within.
7743 beginMark('(React Tree Reconciliation)');
7744 // Resume any measurements that were in progress during the last loop.
7745 resumeTimers();
7746 }
7747}
7748
7749function stopWorkLoopTimer(interruptedBy) {
7750 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected