MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / startWorkTimer

Function startWorkTimer

code/new-context-api/public/app.js:7016–7028  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7014}
7015
7016function startWorkTimer(fiber) {
7017 if (enableUserTimingAPI) {
7018 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7019 return;
7020 }
7021 // If we pause, this is the fiber to unwind from.
7022 currentFiber = fiber;
7023 if (!beginFiberMark(fiber, null)) {
7024 return;
7025 }
7026 fiber._debugIsCurrentlyTiming = true;
7027 }
7028}
7029
7030function cancelWorkTimer(fiber) {
7031 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected