Home / Function/ clampBlockingTimers() — react Function Reference

clampBlockingTimers() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/react-reconciler/src/ReactProfilerTimer.js lines 362–370

export function clampBlockingTimers(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.
  blockingClampTime = finalTime;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free