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

Function startWorkTimer

code/third-party/public/app.js:6888–6900  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6886}
6887
6888function startWorkTimer(fiber) {
6889 if (enableUserTimingAPI) {
6890 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
6891 return;
6892 }
6893 // If we pause, this is the fiber to unwind from.
6894 currentFiber = fiber;
6895 if (!beginFiberMark(fiber, null)) {
6896 return;
6897 }
6898 fiber._debugIsCurrentlyTiming = true;
6899 }
6900}
6901
6902function cancelWorkTimer(fiber) {
6903 if (enableUserTimingAPI) {

Callers 1

performUnitOfWorkFunction · 0.70

Calls 2

shouldIgnoreFiberFunction · 0.70
beginFiberMarkFunction · 0.70

Tested by

no test coverage detected