diff --git a/Libraries/Performance/Systrace.js b/Libraries/Performance/Systrace.js index 6e09bc6cfb..e491d7765d 100644 --- a/Libraries/Performance/Systrace.js +++ b/Libraries/Performance/Systrace.js @@ -240,7 +240,10 @@ const Systrace = { * therefore async variant of profiling is used **/ attachToRelayProfiler(relayProfiler: RelayProfiler) { - relayProfiler.attachProfileHandler('*', (name) => { + relayProfiler.attachProfileHandler('*', (name, state?) => { + if (state != null && state.queryName !== undefined) { + name += '_' + state.queryName + } const cookie = Systrace.beginAsyncEvent(name); return () => { Systrace.endAsyncEvent(name, cookie);