MCPcopy Create free account
hub / github.com/reactjs/react-rails / startWorkTimer

Function startWorkTimer

lib/assets/react-source/development/react.js:14083–14098  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

14081 }
14082 }
14083 function startWorkTimer(fiber) {
14084 {
14085 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
14086 return;
14087 } // If we pause, this is the fiber to unwind from.
14088
14089
14090 currentFiber = fiber;
14091
14092 if (!beginFiberMark(fiber, null)) {
14093 return;
14094 }
14095
14096 fiber._debugIsCurrentlyTiming = true;
14097 }
14098 }
14099 function cancelWorkTimer(fiber) {
14100 {
14101 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