added QPL for main interactions
Reviewed By: @amirrosenfeld Differential Revision: D2488420
This commit is contained in:
parent
0ad05043f5
commit
5b2099f87f
|
@ -28,7 +28,7 @@ var QuickPerformanceLogger = {
|
||||||
MarkerId: {},
|
MarkerId: {},
|
||||||
|
|
||||||
markerStart(markerId, opts) {
|
markerStart(markerId, opts) {
|
||||||
if (markerId === undefined) {
|
if (typeof markerId !== 'number') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (global.nativeQPLMarkerStart) {
|
if (global.nativeQPLMarkerStart) {
|
||||||
|
@ -38,7 +38,7 @@ var QuickPerformanceLogger = {
|
||||||
},
|
},
|
||||||
|
|
||||||
markerEnd(markerId, actionId, opts) {
|
markerEnd(markerId, actionId, opts) {
|
||||||
if (markerId === undefined || actionId === undefined) {
|
if (typeof markerId !== 'number' || typeof actionId !== 'number') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (global.nativeQPLMarkerEnd) {
|
if (global.nativeQPLMarkerEnd) {
|
||||||
|
@ -48,7 +48,7 @@ var QuickPerformanceLogger = {
|
||||||
},
|
},
|
||||||
|
|
||||||
markerNote(markerId, actionId, opts) {
|
markerNote(markerId, actionId, opts) {
|
||||||
if (markerId === undefined || actionId === undefined) {
|
if (typeof markerId !== 'number' || typeof actionId !== 'number') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (global.nativeQPLMarkerNote) {
|
if (global.nativeQPLMarkerNote) {
|
||||||
|
@ -58,7 +58,7 @@ var QuickPerformanceLogger = {
|
||||||
},
|
},
|
||||||
|
|
||||||
markerCancel(markerId, opts) {
|
markerCancel(markerId, opts) {
|
||||||
if (markerId === undefined) {
|
if (typeof markerId !== 'number') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (global.nativeQPLMarkerCancel) {
|
if (global.nativeQPLMarkerCancel) {
|
||||||
|
|
Loading…
Reference in New Issue