MCPcopy
hub / github.com/tastejs/todomvc / startPhaseTimer

Function startPhaseTimer

examples/typescript-react/js/bundle.js:10067–10079  ·  view source on GitHub ↗
(fiber, phase)

Source from the content-addressed store, hash-verified

10065}
10066
10067function startPhaseTimer(fiber, phase) {
10068 if (enableUserTimingAPI) {
10069 if (!supportsUserTiming) {
10070 return;
10071 }
10072 clearPendingPhaseMeasurement();
10073 if (!beginFiberMark(fiber, phase)) {
10074 return;
10075 }
10076 currentPhaseFiber = fiber;
10077 currentPhase = phase;
10078 }
10079}
10080
10081function stopPhaseTimer() {
10082 if (enableUserTimingAPI) {

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