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

Function startWorkTimer

code/styling/public/app.js:7655–7667  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7653}
7654
7655function startWorkTimer(fiber) {
7656 if (enableUserTimingAPI) {
7657 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7658 return;
7659 }
7660 // If we pause, this is the fiber to unwind from.
7661 currentFiber = fiber;
7662 if (!beginFiberMark(fiber, null)) {
7663 return;
7664 }
7665 fiber._debugIsCurrentlyTiming = true;
7666 }
7667}
7668
7669function cancelWorkTimer(fiber) {
7670 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected