Reenable JS calls to systrace on reload

Summary: public

After reloading the JS side of the profiler wasn't being reenabled.

Reviewed By: javache

Differential Revision: D2602258

fb-gh-sync-id: 5de8afb829e9fa8225600e2b0ff9e00313ac1d4c
This commit is contained in:
Tadeu Zagallo
2015-11-02 05:30:16 -08:00
committed by facebook-github-bot-5
parent d33e84dde5
commit 23f7c3acd9
2 changed files with 7 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
var GLOBAL = GLOBAL || this;
var TRACE_TAG_REACT_APPS = 1 << 17;
var _enabled = false;
var _enabled;
var _ReactPerf = null;
function ReactPerf() {
if (!_ReactPerf) {
@@ -63,4 +63,6 @@ var BridgeProfiling = {
},
};
BridgeProfiling.setEnabled(global.__RCTProfileIsProfiling || false);
module.exports = BridgeProfiling;