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

Function startPhaseTimer

code/communication/public/app.js:7747–7759  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

7745}
7746
7747function startPhaseTimer(fiber, phase) {
7748 if (enableUserTimingAPI) {
7749 if (!supportsUserTiming) {
7750 return;
7751 }
7752 clearPendingPhaseMeasurement();
7753 if (!beginFiberMark(fiber, phase)) {
7754 return;
7755 }
7756 currentPhaseFiber = fiber;
7757 currentPhase = phase;
7758 }
7759}
7760
7761function stopPhaseTimer() {
7762 if (enableUserTimingAPI) {

Callers 8

callComponentWillMountFunction · 0.70
resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70
commitLifeCyclesFunction · 0.70
processChildContextFunction · 0.70

Calls 2

beginFiberMarkFunction · 0.70

Tested by

no test coverage detected