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

Function startWorkTimer

code/higher-order-components/public/app.js:7649–7661  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7647}
7648
7649function startWorkTimer(fiber) {
7650 if (enableUserTimingAPI) {
7651 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7652 return;
7653 }
7654 // If we pause, this is the fiber to unwind from.
7655 currentFiber = fiber;
7656 if (!beginFiberMark(fiber, null)) {
7657 return;
7658 }
7659 fiber._debugIsCurrentlyTiming = true;
7660 }
7661}
7662
7663function cancelWorkTimer(fiber) {
7664 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected