mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 09:08:40 +08:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user