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

Function startPhaseTimer

code/higher-order-components/public/app.js:7706–7718  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

7704}
7705
7706function startPhaseTimer(fiber, phase) {
7707 if (enableUserTimingAPI) {
7708 if (!supportsUserTiming) {
7709 return;
7710 }
7711 clearPendingPhaseMeasurement();
7712 if (!beginFiberMark(fiber, phase)) {
7713 return;
7714 }
7715 currentPhaseFiber = fiber;
7716 currentPhase = phase;
7717 }
7718}
7719
7720function stopPhaseTimer() {
7721 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