Permalink
Browse files

Unify Systrace native hook argument passing.

Reviewed By: javache

Differential Revision: D6316024

fbshipit-source-id: c1b315fac2c3cf8558d0c9eb0eb2c7d3efe5c64f
  • Loading branch information...
amnn authored and facebook-github-bot committed Nov 16, 2017
1 parent 6c70975 commit 52e3ae9063705bac53bad99ffe23976c29c8f1b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
}
},

0 comments on commit 52e3ae9

Please sign in to comment.