Unify Systrace native hook argument passing.

Reviewed By: javache

Differential Revision: D6316024

fbshipit-source-id: c1b315fac2c3cf8558d0c9eb0eb2c7d3efe5c64f
This commit is contained in:
Ashok Menon 2017-11-16 07:46:59 -08:00 committed by Facebook Github Bot
parent 6c70975689
commit 52e3ae9063
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
},