mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-29 22:52:09 +08:00
Fix ReactPerf markers in Systrace
Reviewed By: @spicyj Differential Revision: D2468107
This commit is contained in:
committed by
facebook-github-bot-3
parent
d447edc5ed
commit
d96748492f
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user