updateProfiler() — react Function Reference
Architecture documentation for the updateProfiler() function in ReactFiberBeginWork.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 62d7e534_aaea_fb4d_6201_8841bd8d5f53["updateProfiler()"] 0be70812_cc0c_b210_f84f_8e61dd5f831c["ReactFiberBeginWork.js"] 62d7e534_aaea_fb4d_6201_8841bd8d5f53 -->|defined in| 0be70812_cc0c_b210_f84f_8e61dd5f831c 235e1db1_02a4_912f_7d82_ea6636c850c0["beginWork()"] 235e1db1_02a4_912f_7d82_ea6636c850c0 -->|calls| 62d7e534_aaea_fb4d_6201_8841bd8d5f53 cf5641cc_b89e_d6b2_5d40_41ad5bbdd682["reconcileChildren()"] 62d7e534_aaea_fb4d_6201_8841bd8d5f53 -->|calls| cf5641cc_b89e_d6b2_5d40_41ad5bbdd682 style 62d7e534_aaea_fb4d_6201_8841bd8d5f53 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberBeginWork.js lines 1355–1379
function updateProfiler(
current: Fiber | null,
workInProgress: Fiber,
renderLanes: Lanes,
) {
if (enableProfilerTimer) {
workInProgress.flags |= Update;
if (enableProfilerCommitHooks) {
// Schedule a passive effect for this Profiler to call onPostCommit hooks.
// This effect should be scheduled even if there is no onPostCommit callback for this Profiler,
// because the effect is also where times bubble to parent Profilers.
workInProgress.flags |= Passive;
// Reset effect durations for the next eventual effect phase.
// These are reset during render to allow the DevTools commit hook a chance to read them,
const stateNode = workInProgress.stateNode;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
}
}
const nextProps: ProfilerProps = workInProgress.pendingProps;
const nextChildren = nextProps.children;
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
return workInProgress.child;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does updateProfiler() do?
updateProfiler() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberBeginWork.js.
Where is updateProfiler() defined?
updateProfiler() is defined in packages/react-reconciler/src/ReactFiberBeginWork.js at line 1355.
What does updateProfiler() call?
updateProfiler() calls 1 function(s): reconcileChildren.
What calls updateProfiler()?
updateProfiler() is called by 1 function(s): beginWork.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free