MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / startWorkLoopTimer

Function startWorkLoopTimer

code/composition/public/app.js:7878–7891  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7876}
7877
7878function startWorkLoopTimer(nextUnitOfWork) {
7879 if (enableUserTimingAPI) {
7880 currentFiber = nextUnitOfWork;
7881 if (!supportsUserTiming) {
7882 return;
7883 }
7884 commitCountInCurrentWorkLoop = 0;
7885 // This is top level call.
7886 // Any other measurements are performed within.
7887 beginMark('(React Tree Reconciliation)');
7888 // Resume any measurements that were in progress during the last loop.
7889 resumeTimers();
7890 }
7891}
7892
7893function stopWorkLoopTimer(interruptedBy) {
7894 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected