Skip to content

Commit 0e39b95

Browse files
Adding markEvent to the ReactNative QPL
Summary: QPL in ReactNative were missing markEvent API - adding it in this diff. In the next diff I will add support for annotations. Customer request: https://fb.workplace.com/groups/QPL.QandA/posts/1228789167531266/ Changelog: [Internal][Change] - Adding markEvent API to QuickPerformanceLogger Differential Revision: D33789590 fbshipit-source-id: 3e9dfde9d413943281d6aa7e85b9feeafc3bef7a
1 parent 507b05f commit 0e39b95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libraries/Performance/QuickPerformanceLogger.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ const QuickPerformanceLogger = {
9090
}
9191
},
9292

93+
markEvent(markerId: number, type: string): void {
94+
if (global.nativeQPLMarkEvent) {
95+
global.nativeQPLMarkEvent(markerId, type);
96+
}
97+
},
98+
9399
currentTimestamp(): number {
94100
if (global.nativeQPLTimestamp) {
95101
return global.nativeQPLTimestamp();

0 commit comments

Comments
 (0)