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

Function startPhaseTimer

code/styling/public/app.js:7712–7724  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

7710}
7711
7712function startPhaseTimer(fiber, phase) {
7713 if (enableUserTimingAPI) {
7714 if (!supportsUserTiming) {
7715 return;
7716 }
7717 clearPendingPhaseMeasurement();
7718 if (!beginFiberMark(fiber, phase)) {
7719 return;
7720 }
7721 currentPhaseFiber = fiber;
7722 currentPhase = phase;
7723 }
7724}
7725
7726function stopPhaseTimer() {
7727 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