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

Function startPhaseTimer

code/event-handlers/public/app.js:7042–7054  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

7040}
7041
7042function startPhaseTimer(fiber, phase) {
7043 if (enableUserTimingAPI) {
7044 if (!supportsUserTiming) {
7045 return;
7046 }
7047 clearPendingPhaseMeasurement();
7048 if (!beginFiberMark(fiber, phase)) {
7049 return;
7050 }
7051 currentPhaseFiber = fiber;
7052 currentPhase = phase;
7053 }
7054}
7055
7056function stopPhaseTimer() {
7057 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