Skip to content

Commit 52e3ae9

Browse files
Ashok Menonfacebook-github-bot
Ashok Menon
authored andcommitted
Unify Systrace native hook argument passing.
Reviewed By: javache Differential Revision: D6316024 fbshipit-source-id: c1b315fac2c3cf8558d0c9eb0eb2c7d3efe5c64f
1 parent 6c70975 commit 52e3ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Libraries/Performance/Systrace.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const Systrace = {
208208
_asyncCookie++;
209209
profileName = typeof profileName === 'function' ?
210210
profileName() : profileName;
211-
global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie, 0);
211+
global.nativeTraceBeginAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie);
212212
}
213213
return cookie;
214214
},
@@ -217,7 +217,7 @@ const Systrace = {
217217
if (_enabled) {
218218
profileName = typeof profileName === 'function' ?
219219
profileName() : profileName;
220-
global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie, 0);
220+
global.nativeTraceEndAsyncSection(TRACE_TAG_REACT_APPS, profileName, cookie);
221221
}
222222
},
223223

0 commit comments

Comments
 (0)