Skip to content

Commit 29f09ac

Browse files
author
Brian Vaughn
committed
__PROFILER__ -> __PROFILE__
1 parent 6caf273 commit 29f09ac

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ module.exports = {
8181
spyOnDev: true,
8282
spyOnDevAndProd: true,
8383
spyOnProd: true,
84-
__PROFILER__: true,
84+
__PROFILE__: true,
8585
},
8686
};

packages/shared/ReactFeatureFlags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const warnAboutDeprecatedLifecycles = false;
3737
export const warnAboutLegacyContextAPI = false;
3838

3939
// Gather advanced timing metrics for Profiler subtrees.
40-
export const enableProfilerTimer = __DEV__ || __PROFILER__;
40+
export const enableProfilerTimer = __DEV__ || __PROFILE__;
4141

4242
// Fires getDerivedStateFromProps for state *or* props changes
4343
export const fireGetDerivedStateFromPropsOnStateUpdates = true;

packages/shared/forks/ReactFeatureFlags.native-fabric-oss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const enableSuspense = false;
2020
export const warnAboutDeprecatedLifecycles = false;
2121
export const warnAboutLegacyContextAPI = false;
2222
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
23-
export const enableProfilerTimer = __DEV__ || __PROFILER__;
23+
export const enableProfilerTimer = __DEV__ || __PROFILE__;
2424
export const fireGetDerivedStateFromPropsOnStateUpdates = true;
2525

2626
// Only used in www builds.

packages/shared/forks/ReactFeatureFlags.native-oss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const enableUserTimingAPI = __DEV__;
2020
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
2121
export const warnAboutDeprecatedLifecycles = false;
2222
export const warnAboutLegacyContextAPI = false;
23-
export const enableProfilerTimer = __DEV__ || __PROFILER__;
23+
export const enableProfilerTimer = __DEV__ || __PROFILE__;
2424
export const fireGetDerivedStateFromPropsOnStateUpdates = true;
2525

2626
// Only used in www builds.

scripts/flow/environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/* eslint-disable */
1111

12-
declare var __PROFILER__: boolean;
12+
declare var __PROFILE__: boolean;
1313

1414
declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{
1515
inject: ?((stuff: Object) => void)

scripts/rollup/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function getPlugins(
290290
// Turn __DEV__ and process.env checks into constants.
291291
replace({
292292
__DEV__: isProduction ? 'false' : 'true',
293-
__PROFILER__: isProfiling ? 'true' : 'false',
293+
__PROFILE__: isProfiling ? 'true' : 'false',
294294
'process.env.NODE_ENV': isProduction ? "'production'" : "'development'",
295295
}),
296296
// We still need CommonJS for external deps like object-assign.

0 commit comments

Comments
 (0)