startPingTimerByLanes() — react Function Reference
Architecture documentation for the startPingTimerByLanes() function in ReactProfilerTimer.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3dd6006d_9393_3dfb_5e18_cdd26a35f66b["startPingTimerByLanes()"] e054b9c7_41f1_c7f7_97bb_98b6a445e94b["ReactProfilerTimer.js"] 3dd6006d_9393_3dfb_5e18_cdd26a35f66b -->|defined in| e054b9c7_41f1_c7f7_97bb_98b6a445e94b 185b9fca_89de_9f5e_3430_21909e9b039c["createTask()"] 3dd6006d_9393_3dfb_5e18_cdd26a35f66b -->|calls| 185b9fca_89de_9f5e_3430_21909e9b039c style 3dd6006d_9393_3dfb_5e18_cdd26a35f66b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactProfilerTimer.js lines 248–274
export function startPingTimerByLanes(lanes: Lanes): void {
if (!enableProfilerTimer || !enableComponentPerformanceTrack) {
return;
}
// Mark the update time and clamp anything before it because we don't want
// to show the event time for pings but we also don't want to clear it
// because we still need to track if this was a repeat.
if (isGestureRender(lanes)) {
if (gestureUpdateTime < 0) {
gestureClampTime = gestureUpdateTime = now();
gestureUpdateTask = createTask('Promise Resolved');
gestureUpdateType = PINGED_UPDATE;
}
} else if (includesBlockingLane(lanes)) {
if (blockingUpdateTime < 0) {
blockingClampTime = blockingUpdateTime = now();
blockingUpdateTask = createTask('Promise Resolved');
blockingUpdateType = PINGED_UPDATE;
}
} else if (includesTransitionLane(lanes)) {
if (transitionUpdateTime < 0) {
transitionClampTime = transitionUpdateTime = now();
transitionUpdateTask = createTask('Promise Resolved');
transitionUpdateType = PINGED_UPDATE;
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does startPingTimerByLanes() do?
startPingTimerByLanes() is a function in the react codebase, defined in packages/react-reconciler/src/ReactProfilerTimer.js.
Where is startPingTimerByLanes() defined?
startPingTimerByLanes() is defined in packages/react-reconciler/src/ReactProfilerTimer.js at line 248.
What does startPingTimerByLanes() call?
startPingTimerByLanes() calls 1 function(s): createTask.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free