Private
#performancePrivate
#getPrivate
#getPrivate
#getPrivate
#getAdds a measurement marker in the timeline for target
with id
.
It measures the time since addStartMarker with the same target
and id
was called.
If useStopMarker
is specified, it measures the time between addStartMarker and
addStopMarker called with the same target
and id
.
same as addStartMarker
same as addStartMarker
Values:
false | undefined
: Measure from start marker until this measure marker.true
: Measure from start marker until the associated stop marker.Add a start time marker in the timeline.
target for which we are setting the marker (e.g. 'wallet-initialization').
a unique numeric id useful when monitoring many instances. Statistics are aggregated for all ids.
Add a stop time marker in the timeline. Useful when the addMeasureMarker is done separately/later than the start&stop markers. In that case, the measurement is done from startMarker to stopMarker, instead of startMarker to measurementMarker.
same as addStartMarker
same as addStartMarker
Calculates statistics for all targets
added with addMeasureMarker.
a record indexed with the target
and having as value a MeasurementData object.
an array of user defined strings for which measurement markers were added.
Generated using TypeDoc
Wrapper over node perf hooks. T is a user defined string union of the targets that are being measured (e.g. 'wallet-initialization | input-selection').