Unify Systrace native hook argument passing.
Reviewed By: javache Differential Revision: D6316024 fbshipit-source-id: c1b315fac2c3cf8558d0c9eb0eb2c7d3efe5c64f
This commit is contained in:
parent
6c70975689
commit
52e3ae9063
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue