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:
Milen Dzhumerov authored and facebook-github-bot-4 committed 2015-11-20 10:06:28 -08:00
1 parent 155a609781
commit 7febd13676
2 files changed
+21 -1

No files matched your search

@@ -160,7 +160,9 @@ function setUpWebSockets() {
function setUpProfile() {
if (__DEV__) {
require('BridgeProfiling').swizzleReactPerf();
var BridgeProfiling = require('BridgeProfiling');
BridgeProfiling.swizzleReactPerf();
BridgeProfiling.attachToRelayProfiler();
}
}