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

Function startWorkTimer

code/communication/public/app.js:7690–7702  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7688}
7689
7690function startWorkTimer(fiber) {
7691 if (enableUserTimingAPI) {
7692 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
7693 return;
7694 }
7695 // If we pause, this is the fiber to unwind from.
7696 currentFiber = fiber;
7697 if (!beginFiberMark(fiber, null)) {
7698 return;
7699 }
7700 fiber._debugIsCurrentlyTiming = true;
7701 }
7702}
7703
7704function cancelWorkTimer(fiber) {
7705 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected