mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[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:
1 parent
4382c0e8f4
commit
fe0143eb20
3 files changed
+54
-47
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user