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

Function startWorkTimer

code/one-direction-data-flow/public/app.js:7528–7540  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7526}
7527
7528function startWorkTimer(fiber) {
7529 if (enableUserTimingAPI) {
7530 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7531 return;
7532 }
7533 // If we pause, this is the fiber to unwind from.
7534 currentFiber = fiber;
7535 if (!beginFiberMark(fiber, null)) {
7536 return;
7537 }
7538 fiber._debugIsCurrentlyTiming = true;
7539 }
7540}
7541
7542function cancelWorkTimer(fiber) {
7543 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected