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

Function startWorkLoopTimer

code/dependency-injection/public/app.js:7833–7846  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7831}
7832
7833function startWorkLoopTimer(nextUnitOfWork) {
7834 if (enableUserTimingAPI) {
7835 currentFiber = nextUnitOfWork;
7836 if (!supportsUserTiming) {
7837 return;
7838 }
7839 commitCountInCurrentWorkLoop = 0;
7840 // This is top level call.
7841 // Any other measurements are performed within.
7842 beginMark('(React Tree Reconciliation)');
7843 // Resume any measurements that were in progress during the last loop.
7844 resumeTimers();
7845 }
7846}
7847
7848function stopWorkLoopTimer(interruptedBy) {
7849 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected