mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Enable Profiler timing for DOM and RN dev bundles (#12823)
* Enable Profiler timing for DOM and RN dev bundles * Disable enableProfilerTimer feature flag for ReactIncrementalPerf-test
This commit is contained in:
@@ -115,6 +115,7 @@ describe('ReactDebugFiberPerf', () => {
|
||||
global.performance = createUserTimingPolyfill();
|
||||
|
||||
require('shared/ReactFeatureFlags').enableUserTimingAPI = true;
|
||||
require('shared/ReactFeatureFlags').enableProfilerTimer = false;
|
||||
require('shared/ReactFeatureFlags').replayFailedUnitOfWorkWithInvokeGuardedCallback = false;
|
||||
|
||||
// Import after the polyfill is set up:
|
||||
|
||||
@@ -40,7 +40,7 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
|
||||
export const warnAboutDeprecatedLifecycles = false;
|
||||
|
||||
// Gather advanced timing metrics for Profiler subtrees.
|
||||
export const enableProfilerTimer = false;
|
||||
export const enableProfilerTimer = __DEV__;
|
||||
|
||||
// Fires getDerivedStateFromProps for state *or* props changes
|
||||
export const fireGetDerivedStateFromPropsOnStateUpdates = true;
|
||||
|
||||
@@ -22,7 +22,7 @@ export const enablePersistentReconciler = false;
|
||||
export const enableUserTimingAPI = __DEV__;
|
||||
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
|
||||
export const warnAboutDeprecatedLifecycles = false;
|
||||
export const enableProfilerTimer = false;
|
||||
export const enableProfilerTimer = __DEV__;
|
||||
export const fireGetDerivedStateFromPropsOnStateUpdates = true;
|
||||
|
||||
// Only used in www builds.
|
||||
|
||||
Reference in New Issue
Block a user