[ReactNative] Update JS profiler to be compatible with Android

Summary:
Use nativeTraceBeginSection and nativeTraceEndSection with a more dynamic signature
to be compatible with Android.
This commit is contained in:
Tadeu Zagallo
2015-08-25 01:31:22 -07:00
parent 4382c0e8f4
commit fe0143eb20
3 changed files with 54 additions and 47 deletions

View File

@@ -131,8 +131,8 @@ function setUpWebSockets() {
}
function setupProfile() {
console.profile = console.profile || GLOBAL.consoleProfile || function () {};
console.profileEnd = console.profileEnd || GLOBAL.consoleProfileEnd || function () {};
console.profile = console.profile || GLOBAL.nativeTraceBeginSection || function () {};
console.profileEnd = console.profileEnd || GLOBAL.nativeTraceEndSection || function () {};
require('BridgeProfiling').swizzleReactPerf();
}