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

Function startWorkLoopTimer

code/new-context-api/public/app.js:7101–7114  ·  view source on GitHub ↗
(nextUnitOfWork)

Source from the content-addressed store, hash-verified

7099}
7100
7101function startWorkLoopTimer(nextUnitOfWork) {
7102 if (enableUserTimingAPI) {
7103 currentFiber = nextUnitOfWork;
7104 if (!supportsUserTiming) {
7105 return;
7106 }
7107 commitCountInCurrentWorkLoop = 0;
7108 // This is top level call.
7109 // Any other measurements are performed within.
7110 beginMark('(React Tree Reconciliation)');
7111 // Resume any measurements that were in progress during the last loop.
7112 resumeTimers();
7113 }
7114}
7115
7116function stopWorkLoopTimer(interruptedBy) {
7117 if (enableUserTimingAPI) {

Callers 1

renderRootFunction · 0.70

Calls 2

beginMarkFunction · 0.70
resumeTimersFunction · 0.70

Tested by

no test coverage detected