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

Function startPhaseTimer

code/controlled-uncontrolled/public/app.js:7036–7048  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

7034}
7035
7036function startPhaseTimer(fiber, phase) {
7037 if (enableUserTimingAPI) {
7038 if (!supportsUserTiming) {
7039 return;
7040 }
7041 clearPendingPhaseMeasurement();
7042 if (!beginFiberMark(fiber, phase)) {
7043 return;
7044 }
7045 currentPhaseFiber = fiber;
7046 currentPhase = phase;
7047 }
7048}
7049
7050function stopPhaseTimer() {
7051 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