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

Function startWorkTimer

code/event-handlers/public/app.js:6985–6997  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6983}
6984
6985function startWorkTimer(fiber) {
6986 if (enableUserTimingAPI) {
6987 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
6988 return;
6989 }
6990 // If we pause, this is the fiber to unwind from.
6991 currentFiber = fiber;
6992 if (!beginFiberMark(fiber, null)) {
6993 return;
6994 }
6995 fiber._debugIsCurrentlyTiming = true;
6996 }
6997}
6998
6999function cancelWorkTimer(fiber) {
7000 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected