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

Function startWorkLoopTimer

code/communication/public/app.js:7775–7788  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7773}
7774
7775function startWorkLoopTimer(nextUnitOfWork) {
7776 if (enableUserTimingAPI) {
7777 currentFiber = nextUnitOfWork;
7778 if (!supportsUserTiming) {
7779 return;
7780 }
7781 commitCountInCurrentWorkLoop = 0;
7782 // This is top level call.
7783 // Any other measurements are performed within.
7784 beginMark('(React Tree Reconciliation)');
7785 // Resume any measurements that were in progress during the last loop.
7786 resumeTimers();
7787 }
7788}
7789
7790function stopWorkLoopTimer(interruptedBy) {
7791 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected