mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
Attach to all RelayProfiler events
Summary: public Dynamically profile events from RelayProfiler if available. This will expose time spent in Relay in the systraces. Reviewed By: tadeuzagallo Differential Revision: D2674215 fb-gh-sync-id: d5f9d529b86d267a80b0cda2223f6a28a08ac385
This commit is contained in:
committed by
facebook-github-bot-4
parent
155a609781
commit
7febd13676
@@ -160,7 +160,9 @@ function setUpWebSockets() {
|
||||
|
||||
function setUpProfile() {
|
||||
if (__DEV__) {
|
||||
require('BridgeProfiling').swizzleReactPerf();
|
||||
var BridgeProfiling = require('BridgeProfiling');
|
||||
BridgeProfiling.swizzleReactPerf();
|
||||
BridgeProfiling.attachToRelayProfiler();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user