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

Function trackSuspendedTime

packages/react-reconciler/src/ReactProfilerTimer.js:276–287  ·  view source on GitHub ↗
(lanes: Lanes, renderEndTime: number)

Source from the content-addressed store, hash-verified

274}
275
276export function trackSuspendedTime(lanes: Lanes, renderEndTime: number) {
277 if (!enableProfilerTimer || !enableComponentPerformanceTrack) {
278 return;
279 }
280 if (isGestureRender(lanes)) {
281 gestureSuspendedTime = renderEndTime;
282 } else if (includesBlockingLane(lanes)) {
283 blockingSuspendedTime = renderEndTime;
284 } else if (includesTransitionLane(lanes)) {
285 transitionSuspendedTime = renderEndTime;
286 }
287}
288
289export function clearBlockingTimers(): void {
290 blockingUpdateTime = -1.1;

Callers 1

finishConcurrentRenderFunction · 0.90

Calls 3

isGestureRenderFunction · 0.90
includesBlockingLaneFunction · 0.90
includesTransitionLaneFunction · 0.90

Tested by

no test coverage detected