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
2015-11-20 10:03:21 -08:00
committed by facebook-github-bot-4
parent 155a609781
commit 7febd13676
2 changed files with 21 additions and 1 deletions

View File

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