Home / Function/ clampGestureTimers() — react Function Reference

clampGestureTimers() — react Function Reference

Architecture documentation for the clampGestureTimers() function in ReactProfilerTimer.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d6ddf595_29c3_6310_bef9_d7838a4da433["clampGestureTimers()"]
  e054b9c7_41f1_c7f7_97bb_98b6a445e94b["ReactProfilerTimer.js"]
  d6ddf595_29c3_6310_bef9_d7838a4da433 -->|defined in| e054b9c7_41f1_c7f7_97bb_98b6a445e94b
  style d6ddf595_29c3_6310_bef9_d7838a4da433 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactProfilerTimer.js lines 372–380

export function clampGestureTimers(finalTime: number): void {
  if (!enableProfilerTimer || !enableComponentPerformanceTrack) {
    return;
  }
  // If we had new updates come in while we were still rendering or committing, we don't want
  // those update times to create overlapping tracks in the performance timeline so we clamp
  // them to the end of the commit phase.
  gestureClampTime = finalTime;
}

Domain

Subdomains

Frequently Asked Questions

What does clampGestureTimers() do?
clampGestureTimers() is a function in the react codebase, defined in packages/react-reconciler/src/ReactProfilerTimer.js.
Where is clampGestureTimers() defined?
clampGestureTimers() is defined in packages/react-reconciler/src/ReactProfilerTimer.js at line 372.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free