mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
Use nativeTrace(Begin|End)Section directly from BridgeProfiling
Summary: public Call the native bindings explicitly from BridgeProfiling instead of polyfill'ing `console.profile` with a function that has a different signature. Reviewed By: vjeux Differential Revision: D2602313 fb-gh-sync-id: 9295eff9458f2caa35b7e982c0f7c06dbe65fd09
This commit is contained in:
committed by
facebook-github-bot-5
parent
7ae39f83ac
commit
d33e84dde5
@@ -159,8 +159,6 @@ function setUpWebSockets() {
|
||||
}
|
||||
|
||||
function setUpProfile() {
|
||||
console.profile = console.profile || GLOBAL.nativeTraceBeginSection || function () {};
|
||||
console.profileEnd = console.profileEnd || GLOBAL.nativeTraceEndSection || function () {};
|
||||
if (__DEV__) {
|
||||
require('BridgeProfiling').swizzleReactPerf();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user