Home / Function/ getProfilingFlags() — react Function Reference

getProfilingFlags() — react Function Reference

Architecture documentation for the getProfilingFlags() function in getProfilingFlags.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a4ecef78_9729_369e_7aeb_a617b81c10ad["getProfilingFlags()"]
  dab5517a_773b_d41a_64da_73bc62b21764["getProfilingFlags.js"]
  a4ecef78_9729_369e_7aeb_a617b81c10ad -->|defined in| dab5517a_773b_d41a_64da_73bc62b21764
  bb19f56d_5cc8_e6cd_8df2_513f1715da12["createBridgeAndStore()"]
  bb19f56d_5cc8_e6cd_8df2_513f1715da12 -->|calls| a4ecef78_9729_369e_7aeb_a617b81c10ad
  style a4ecef78_9729_369e_7aeb_a617b81c10ad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/src/main/getProfilingFlags.js lines 7–19

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};
}

Domain

Subdomains

Frequently Asked Questions

What does getProfilingFlags() do?
getProfilingFlags() is a function in the react codebase, defined in packages/react-devtools-extensions/src/main/getProfilingFlags.js.
Where is getProfilingFlags() defined?
getProfilingFlags() is defined in packages/react-devtools-extensions/src/main/getProfilingFlags.js at line 7.
What calls getProfilingFlags()?
getProfilingFlags() is called by 1 function(s): createBridgeAndStore.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free