Skip to content

Commit

Permalink
Adding metadata to React Native QPL points
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[General][Added] - Added data field to markerPoint to allow callers to add additional arbitrary string data to logged points

Reviewed By: dmitry-voronkevich

Differential Revision: D29764274

fbshipit-source-id: b0d21e3b20a5353351424afb10c950f3e8689887
  • Loading branch information
Mark Bridges authored and facebook-github-bot committed Jul 21, 2021
1 parent bc57056 commit aa98978
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/Performance/QuickPerformanceLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ const QuickPerformanceLogger = {
name: string,
instanceKey: number = DUMMY_INSTANCE_KEY,
timestamp: number = AUTO_SET_TIMESTAMP,
data: ?string = null,
): void {
if (global.nativeQPLMarkerPoint) {
global.nativeQPLMarkerPoint(markerId, name, instanceKey, timestamp);
global.nativeQPLMarkerPoint(markerId, name, instanceKey, timestamp, data);
}
},

Expand Down

0 comments on commit aa98978

Please sign in to comment.