[ReactNative] Add ReactPerf info to profiler timeline

Summary:
@public

Hook into ReactPerf to add markers to `RCTProfile` timeline.

Test Plan: {F22569628}
This commit is contained in:
Tadeu Zagallo
2015-06-15 13:05:05 -07:00
parent 03f49c8b0f
commit 86dc92d5ab
4 changed files with 42 additions and 14 deletions

View File

@@ -123,6 +123,7 @@ function setUpWebSockets() {
function setupProfile() {
console.profile = console.profile || GLOBAL.consoleProfile || function () {};
console.profileEnd = console.profileEnd || GLOBAL.consoleProfileEnd || function () {};
require('BridgeProfiling').swizzleReactPerf();
}
setUpRedBoxErrorHandler();