_performPreflightComputations() — react Function Reference
Architecture documentation for the _performPreflightComputations() function in ReactMeasuresView.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2b4fe3d4_cdf8_ce6f_170c_b5212ee38e40["_performPreflightComputations()"] ef3af242_6989_01f2_141b_b5ae3fce4bc5["ReactMeasuresView"] 2b4fe3d4_cdf8_ce6f_170c_b5212ee38e40 -->|defined in| ef3af242_6989_01f2_141b_b5ae3fce4bc5 832c0ddc_1576_8235_3ea4_b4ccdd46a619["constructor()"] 832c0ddc_1576_8235_3ea4_b4ccdd46a619 -->|calls| 2b4fe3d4_cdf8_ce6f_170c_b5212ee38e40 style 2b4fe3d4_cdf8_ce6f_170c_b5212ee38e40 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-timeline/src/content-views/ReactMeasuresView.js lines 54–72
_performPreflightComputations() {
this._lanesToRender = [];
// eslint-disable-next-line no-for-of-loops/no-for-of-loops
for (const [lane, measuresForLane] of this._profilerData
.laneToReactMeasureMap) {
// Only show lanes with measures
if (measuresForLane.length > 0) {
this._lanesToRender.push(lane);
}
}
this._intrinsicSize = {
width: this._profilerData.duration,
height: this._lanesToRender.length * REACT_LANE_HEIGHT,
hideScrollBarIfLessThanHeight: REACT_LANE_HEIGHT,
maxInitialHeight: MAX_ROWS_TO_SHOW_INITIALLY * REACT_LANE_HEIGHT,
};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _performPreflightComputations() do?
_performPreflightComputations() is a function in the react codebase, defined in packages/react-devtools-timeline/src/content-views/ReactMeasuresView.js.
Where is _performPreflightComputations() defined?
_performPreflightComputations() is defined in packages/react-devtools-timeline/src/content-views/ReactMeasuresView.js at line 54.
What calls _performPreflightComputations()?
_performPreflightComputations() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free