ReactFiberPerformanceTrack.js — react Source File
Architecture documentation for ReactFiberPerformanceTrack.js, a javascript file in the react codebase. 7 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR d7440987_975b_87e1_1856_1f2dfc018509["ReactFiberPerformanceTrack.js"] 6b9f5caa_fb13_3d3c_2f60_ad3c4f58371f["ReactInternalTypes.js"] d7440987_975b_87e1_1856_1f2dfc018509 --> 6b9f5caa_fb13_3d3c_2f60_ad3c4f58371f 768f6d67_77c1_be19_5596_a943eab59e05["ReactFiberLane.js"] d7440987_975b_87e1_1856_1f2dfc018509 --> 768f6d67_77c1_be19_5596_a943eab59e05 3c1744da_8f82_b464_9a56_73fd7302132b["ReactCapturedValue.js"] d7440987_975b_87e1_1856_1f2dfc018509 --> 3c1744da_8f82_b464_9a56_73fd7302132b d3557f30_4fca_e30a_91c5_c23d4b8dba99["ReactWorkTags.js"] d7440987_975b_87e1_1856_1f2dfc018509 --> d3557f30_4fca_e30a_91c5_c23d4b8dba99 e2d659a0_137e_44c3_6d74_509023d250de["getComponentNameFromFiber.js"] d7440987_975b_87e1_1856_1f2dfc018509 --> e2d659a0_137e_44c3_6d74_509023d250de 8f26733a_6439_3385_e619_f96914b1e0f0["ReactPerformanceTrackProperties"] d7440987_975b_87e1_1856_1f2dfc018509 --> 8f26733a_6439_3385_e619_f96914b1e0f0 8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"] d7440987_975b_87e1_1856_1f2dfc018509 --> 8344de1b_978c_be0f_eebd_38ccc4962a93 e0fbfbd5_47b0_a489_0b36_bbfad9245544["ReactFiberCommitWork.js"] e0fbfbd5_47b0_a489_0b36_bbfad9245544 --> d7440987_975b_87e1_1856_1f2dfc018509 d73e9290_2d2e_5d3f_97dd_84929f205c77["ReactFiberWorkLoop.js"] d73e9290_2d2e_5d3f_97dd_84929f205c77 --> d7440987_975b_87e1_1856_1f2dfc018509 style d7440987_975b_87e1_1856_1f2dfc018509 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
/* eslint-disable react-internal/no-production-logging */
import type {Fiber} from './ReactInternalTypes';
import type {Lanes} from './ReactFiberLane';
import type {CapturedValue} from './ReactCapturedValue';
import {SuspenseComponent} from './ReactWorkTags';
import getComponentNameFromFiber from './getComponentNameFromFiber';
import {
getGroupNameOfHighestPriorityLane,
includesOnlyHydrationLanes,
includesOnlyOffscreenLanes,
includesOnlyHydrationOrOffscreenLanes,
includesSomeLane,
} from './ReactFiberLane';
import {
addValueToProperties,
addObjectToProperties,
addObjectDiffToProperties,
} from 'shared/ReactPerformanceTrackProperties';
import {
enableProfilerTimer,
enableGestureTransition,
enablePerformanceIssueReporting,
} from 'shared/ReactFeatureFlags';
const supportsUserTiming =
enableProfilerTimer &&
typeof console !== 'undefined' &&
typeof console.timeStamp === 'function' &&
(!__DEV__ ||
// In DEV we also rely on performance.measure
(typeof performance !== 'undefined' &&
// $FlowFixMe[method-unbinding]
typeof performance.measure === 'function'));
const COMPONENTS_TRACK = 'Components ⚛';
const LANES_TRACK_GROUP = 'Scheduler ⚛';
let currentTrack: string = 'Blocking'; // Lane
export function setCurrentTrackFromLanes(lanes: Lanes): void {
currentTrack = getGroupNameOfHighestPriorityLane(lanes);
}
// ... (1661 more lines)
Domain
Dependencies
- ReactCapturedValue.js
- ReactFeatureFlags
- ReactFiberLane.js
- ReactInternalTypes.js
- ReactPerformanceTrackProperties
- ReactWorkTags.js
- getComponentNameFromFiber.js
Imported By
Source
Frequently Asked Questions
What does ReactFiberPerformanceTrack.js do?
ReactFiberPerformanceTrack.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactFiberPerformanceTrack.js depend on?
ReactFiberPerformanceTrack.js imports 7 module(s): ReactCapturedValue.js, ReactFeatureFlags, ReactFiberLane.js, ReactInternalTypes.js, ReactPerformanceTrackProperties, ReactWorkTags.js, getComponentNameFromFiber.js.
What files import ReactFiberPerformanceTrack.js?
ReactFiberPerformanceTrack.js is imported by 2 file(s): ReactFiberCommitWork.js, ReactFiberWorkLoop.js.
Where is ReactFiberPerformanceTrack.js in the architecture?
ReactFiberPerformanceTrack.js is located at packages/react-reconciler/src/ReactFiberPerformanceTrack.js (domain: BabelCompiler, directory: packages/react-reconciler/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free