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

Function startWorkLoopTimer

code/styling/public/app.js:7740–7753  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

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

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected