From 52e3ae9063705bac53bad99ffe23976c29c8f1b2 Mon Sep 17 00:00:00 2001 From: Ashok Menon Date: Thu, 16 Nov 2017 07:46:59 -0800 Subject: [PATCH] Unify Systrace native hook argument passing. Reviewed By: javache Differential Revision: D6316024 fbshipit-source-id: c1b315fac2c3cf8558d0c9eb0eb2c7d3efe5c64f --- Libraries/Performance/Systrace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Performance/Systrace.js b/Libraries/Performance/Systrace.js index 489576bb0d023f..44a156a53b65ef 100644 --- a/Libraries/Performance/Systrace.js +++ b/Libraries/Performance/Systrace.js @@ -208,7 +208,7 @@ const Systrace = { _asyncCookie++; profileName = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie, 0); + global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie); } return cookie; }, @@ -217,7 +217,7 @@ const Systrace = { if (_enabled) { profileName = typeof profileName === 'function' ? profileName() : profileName; - global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie, 0); + global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie); } },