MCPcopy
hub / github.com/facebook/react / startYieldTimer

Function startYieldTimer

packages/react-reconciler/src/ReactProfilerTimer.js:113–119  ·  view source on GitHub ↗
(reason: SuspendedReason)

Source from the content-addressed store, hash-verified

111export let yieldStartTime: number = -1.1; // The time when we yielded to the event loop
112
113export function startYieldTimer(reason: SuspendedReason) {
114 if (!enableProfilerTimer || !enableComponentPerformanceTrack) {
115 return;
116 }
117 yieldStartTime = now();
118 yieldReason = reason;
119}
120
121export function startUpdateTimerByLane(
122 lane: Lane,

Callers 1

performWorkOnRootFunction · 0.90

Calls 1

nowFunction · 0.50

Tested by

no test coverage detected