Fix ReactPerf markers in Systrace

Reviewed By: @spicyj

Differential Revision: D2468107
This commit is contained in:
Tadeu Zagallo
2015-10-01 14:08:13 -07:00
committed by facebook-github-bot-3
parent d447edc5ed
commit d96748492f
3 changed files with 42 additions and 30 deletions

View File

@@ -133,7 +133,9 @@ function setUpWebSockets() {
function setupProfile() {
console.profile = console.profile || GLOBAL.nativeTraceBeginSection || function () {};
console.profileEnd = console.profileEnd || GLOBAL.nativeTraceEndSection || function () {};
require('BridgeProfiling').swizzleReactPerf();
if (__DEV__) {
require('BridgeProfiling').swizzleReactPerf();
}
}
function setUpProcessEnv() {