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

Function startWorkLoopTimer

code/one-direction-data-flow/public/app.js:7613–7626  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7611}
7612
7613function startWorkLoopTimer(nextUnitOfWork) {
7614 if (enableUserTimingAPI) {
7615 currentFiber = nextUnitOfWork;
7616 if (!supportsUserTiming) {
7617 return;
7618 }
7619 commitCountInCurrentWorkLoop = 0;
7620 // This is top level call.
7621 // Any other measurements are performed within.
7622 beginMark('(React Tree Reconciliation)');
7623 // Resume any measurements that were in progress during the last loop.
7624 resumeTimers();
7625 }
7626}
7627
7628function stopWorkLoopTimer(interruptedBy) {
7629 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected