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

Function startWorkLoopTimer

code/third-party/public/app.js:6973–6986  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

6971}
6972
6973function startWorkLoopTimer(nextUnitOfWork) {
6974 if (enableUserTimingAPI) {
6975 currentFiber = nextUnitOfWork;
6976 if (!supportsUserTiming) {
6977 return;
6978 }
6979 commitCountInCurrentWorkLoop = 0;
6980 // This is top level call.
6981 // Any other measurements are performed within.
6982 beginMark('(React Tree Reconciliation)');
6983 // Resume any measurements that were in progress during the last loop.
6984 resumeTimers();
6985 }
6986}
6987
6988function stopWorkLoopTimer(interruptedBy) {
6989 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected