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

Function startPhaseTimer

code/one-direction-data-flow/public/app.js:7585–7597  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

7583}
7584
7585function startPhaseTimer(fiber, phase) {
7586 if (enableUserTimingAPI) {
7587 if (!supportsUserTiming) {
7588 return;
7589 }
7590 clearPendingPhaseMeasurement();
7591 if (!beginFiberMark(fiber, phase)) {
7592 return;
7593 }
7594 currentPhaseFiber = fiber;
7595 currentPhase = phase;
7596 }
7597}
7598
7599function stopPhaseTimer() {
7600 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