Skip to content

Commit aa98978

Browse files
Mark Bridgesfacebook-github-bot
Mark Bridges
authored andcommitted
Adding metadata to React Native QPL points
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
1 parent bc57056 commit aa98978

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Libraries/Performance/QuickPerformanceLogger.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ const QuickPerformanceLogger = {
7474
name: string,
7575
instanceKey: number = DUMMY_INSTANCE_KEY,
7676
timestamp: number = AUTO_SET_TIMESTAMP,
77+
data: ?string = null,
7778
): void {
7879
if (global.nativeQPLMarkerPoint) {
79-
global.nativeQPLMarkerPoint(markerId, name, instanceKey, timestamp);
80+
global.nativeQPLMarkerPoint(markerId, name, instanceKey, timestamp, data);
8081
}
8182
},
8283

0 commit comments

Comments
 (0)