Cleanup perf logging in FacebookAppRouteHandler
Reviewed By: sahrens Differential Revision: D5154561 fbshipit-source-id: 5a3a495bbb910153833bc910864b6d5c7dca6432
This commit is contained in:
parent
365c1bfcf9
commit
f7ebf0c64e
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue