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

Function startWorkLoopTimer

code/controlled-uncontrolled/public/app.js:7064–7077  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7062}
7063
7064function startWorkLoopTimer(nextUnitOfWork) {
7065 if (enableUserTimingAPI) {
7066 currentFiber = nextUnitOfWork;
7067 if (!supportsUserTiming) {
7068 return;
7069 }
7070 commitCountInCurrentWorkLoop = 0;
7071 // This is top level call.
7072 // Any other measurements are performed within.
7073 beginMark('(React Tree Reconciliation)');
7074 // Resume any measurements that were in progress during the last loop.
7075 resumeTimers();
7076 }
7077}
7078
7079function stopWorkLoopTimer(interruptedBy) {
7080 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected