MCPcopy Create free account
hub / github.com/microsoft/SandDance / startWorkTimer

Function startWorkTimer

docs/external/js/react-dom.development.js:10511–10526  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

10509 }
10510 }
10511 function startWorkTimer(fiber) {
10512 {
10513 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
10514 return;
10515 } // If we pause, this is the fiber to unwind from.
10516
10517
10518 currentFiber = fiber;
10519
10520 if (!beginFiberMark(fiber, null)) {
10521 return;
10522 }
10523
10524 fiber._debugIsCurrentlyTiming = true;
10525 }
10526 }
10527 function cancelWorkTimer(fiber) {
10528 {
10529 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {

Callers 2

mountLazyComponentFunction · 0.85
performUnitOfWorkFunction · 0.85

Calls 2

shouldIgnoreFiberFunction · 0.85
beginFiberMarkFunction · 0.85

Tested by

no test coverage detected