Skip to content

Commit

Permalink
Unify Systrace native hook argument passing.
Browse files Browse the repository at this point in the history
Reviewed By: javache

Differential Revision: D6316024

fbshipit-source-id: c1b315fac2c3cf8558d0c9eb0eb2c7d3efe5c64f
  • Loading branch information
Ashok Menon authored and facebook-github-bot committed Nov 16, 2017
1 parent 6c70975 commit 52e3ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Performance/Systrace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand All @@ -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);
}
},

Expand Down

0 comments on commit 52e3ae9

Please sign in to comment.