getProfilingFlags.js — react Source File
Architecture documentation for getProfilingFlags.js, a javascript file in the react codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR dab5517a_773b_d41a_64da_73bc62b21764["getProfilingFlags.js"] 4f31ec17_ed00_bfa1_f25f_2101aa0548ee["storage"] dab5517a_773b_d41a_64da_73bc62b21764 --> 4f31ec17_ed00_bfa1_f25f_2101aa0548ee 55d27179_f566_db64_927b_e95655abee00["constants"] dab5517a_773b_d41a_64da_73bc62b21764 --> 55d27179_f566_db64_927b_e95655abee00 b5e42467_7633_e234_1d51_a93bfc4818c7["index.js"] b5e42467_7633_e234_1d51_a93bfc4818c7 --> dab5517a_773b_d41a_64da_73bc62b21764 style dab5517a_773b_d41a_64da_73bc62b21764 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
localStorageGetItem,
localStorageRemoveItem,
} from 'react-devtools-shared/src/storage';
import {LOCAL_STORAGE_SUPPORTS_PROFILING_KEY} from 'react-devtools-shared/src/constants';
function getProfilingFlags() {
// This flag lets us tip the Store off early that we expect to be profiling.
// This avoids flashing a temporary "Profiling not supported" message in the Profiler tab,
// after a user has clicked the "reload and profile" button.
let isProfiling = false;
if (localStorageGetItem(LOCAL_STORAGE_SUPPORTS_PROFILING_KEY) === 'true') {
isProfiling = true;
localStorageRemoveItem(LOCAL_STORAGE_SUPPORTS_PROFILING_KEY);
}
return {isProfiling};
}
export default getProfilingFlags;
Domain
Subdomains
Functions
Dependencies
- constants
- storage
Source
Frequently Asked Questions
What does getProfilingFlags.js do?
getProfilingFlags.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in getProfilingFlags.js?
getProfilingFlags.js defines 1 function(s): getProfilingFlags.
What does getProfilingFlags.js depend on?
getProfilingFlags.js imports 2 module(s): constants, storage.
What files import getProfilingFlags.js?
getProfilingFlags.js is imported by 1 file(s): index.js.
Where is getProfilingFlags.js in the architecture?
getProfilingFlags.js is located at packages/react-devtools-extensions/src/main/getProfilingFlags.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-extensions/src/main).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free