updateLaneToLabelMap() — react Function Reference
Architecture documentation for the updateLaneToLabelMap() function in preprocessData.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 95d63b61_4fb5_111c_5ac6_d1f83c8fe393["updateLaneToLabelMap()"] a3f7147d_da0b_56dc_ffc9_a9e2bbc4526a["preprocessData.js"] 95d63b61_4fb5_111c_5ac6_d1f83c8fe393 -->|defined in| a3f7147d_da0b_56dc_ffc9_a9e2bbc4526a 7e379096_4ef1_e90c_7e2b_b822b6321992["processTimelineEvent()"] 7e379096_4ef1_e90c_7e2b_b822b6321992 -->|calls| 95d63b61_4fb5_111c_5ac6_d1f83c8fe393 style 95d63b61_4fb5_111c_5ac6_d1f83c8fe393 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-timeline/src/import-worker/preprocessData.js lines 108–123
function updateLaneToLabelMap(
profilerData: TimelineData,
laneLabelTuplesString: string,
): void {
// These marks appear multiple times in the data;
// We only need to extact them once.
if (profilerData.laneToLabelMap.size === 0) {
const laneLabelTuples = laneLabelTuplesString.split(',');
for (let laneIndex = 0; laneIndex < laneLabelTuples.length; laneIndex++) {
// The numeric lane value (e.g. 64) isn't important.
// The profiler parses and stores the lane's position within the bitmap,
// (e.g. lane 1 is index 0, lane 16 is index 4).
profilerData.laneToLabelMap.set(laneIndex, laneLabelTuples[laneIndex]);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does updateLaneToLabelMap() do?
updateLaneToLabelMap() is a function in the react codebase, defined in packages/react-devtools-timeline/src/import-worker/preprocessData.js.
Where is updateLaneToLabelMap() defined?
updateLaneToLabelMap() is defined in packages/react-devtools-timeline/src/import-worker/preprocessData.js at line 108.
What calls updateLaneToLabelMap()?
updateLaneToLabelMap() is called by 1 function(s): processTimelineEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free