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

Function startWorkTimer

code/controlled-uncontrolled/public/app.js:6979–6991  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6977}
6978
6979function startWorkTimer(fiber) {
6980 if (enableUserTimingAPI) {
6981 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
6982 return;
6983 }
6984 // If we pause, this is the fiber to unwind from.
6985 currentFiber = fiber;
6986 if (!beginFiberMark(fiber, null)) {
6987 return;
6988 }
6989 fiber._debugIsCurrentlyTiming = true;
6990 }
6991}
6992
6993function cancelWorkTimer(fiber) {
6994 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected