MCPcopy Create free account
hub / github.com/reactjs/react-rails / startPhaseTimer

Function startPhaseTimer

lib/assets/react-source/development/react.js:14146–14161  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

14144 }
14145 }
14146 function startPhaseTimer(fiber, phase) {
14147 {
14148 if (!supportsUserTiming) {
14149 return;
14150 }
14151
14152 clearPendingPhaseMeasurement();
14153
14154 if (!beginFiberMark(fiber, phase)) {
14155 return;
14156 }
14157
14158 currentPhaseFiber = fiber;
14159 currentPhase = phase;
14160 }
14161 }
14162 function stopPhaseTimer() {
14163 {
14164 if (!supportsUserTiming) {

Callers 9

processChildContextFunction · 0.85
callComponentWillMountFunction · 0.85
resumeMountClassInstanceFunction · 0.85
updateClassInstanceFunction · 0.85
commitLifeCyclesFunction · 0.85

Calls 2

beginFiberMarkFunction · 0.85

Tested by

no test coverage detected