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:
Brian Vaughn
2018-05-15 15:26:46 -07:00
committed by GitHub
parent f792275972
commit de84d5c107
3 changed files with 3 additions and 2 deletions
@@ -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:
+1 -1
View File
@@ -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.