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

Function startWorkTimer

code/dependency-injection/public/app.js:7748–7760  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7746}
7747
7748function startWorkTimer(fiber) {
7749 if (enableUserTimingAPI) {
7750 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7751 return;
7752 }
7753 // If we pause, this is the fiber to unwind from.
7754 currentFiber = fiber;
7755 if (!beginFiberMark(fiber, null)) {
7756 return;
7757 }
7758 fiber._debugIsCurrentlyTiming = true;
7759 }
7760}
7761
7762function cancelWorkTimer(fiber) {
7763 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected