Cleanup perf logging in FacebookAppRouteHandler

Reviewed By: sahrens

Differential Revision: D5154561

fbshipit-source-id: 5a3a495bbb910153833bc910864b6d5c7dca6432
This commit is contained in:
Pieter De Baets 2017-06-01 04:07:43 -07:00 committed by Facebook Github Bot
parent 365c1bfcf9
commit f7ebf0c64e
1 changed files with 1 additions and 8 deletions

View File

@ -13,7 +13,6 @@
const BatchedBridge = require('BatchedBridge');
const BugReporting = require('BugReporting');
const FrameRateLogger = require('FrameRateLogger');
const NativeModules = require('NativeModules');
const ReactNative = require('ReactNative');
const SceneTracker = require('SceneTracker');
@ -57,8 +56,6 @@ const sections: Runnables = {};
const tasks: Map<string, TaskProvider> = new Map();
let componentProviderInstrumentationHook: ComponentProviderInstrumentationHook =
(component: ComponentProvider) => component();
let _frameRateLoggerSceneListener = null;
/**
* <div class="banner-crna-ejected">
@ -187,11 +184,7 @@ const AppRegistry = {
'This error can also happen due to a require() error during ' +
'initialization or failure to call AppRegistry.registerComponent.\n\n'
);
if (!_frameRateLoggerSceneListener) {
_frameRateLoggerSceneListener = SceneTracker.addActiveSceneChangedListener(
(scene) => FrameRateLogger.setContext(scene.name)
);
}
SceneTracker.setActiveScene({name: appKey});
runnables[appKey].run(appParameters);
},