addDataPoint method
Adds a timed sample to the timeseries corresponding to key
.
Set reported
to true
to report the timeseries to the dashboard UI.
Set reported
to false
to store the data, but not show it on the
dashboard UI.
Implementation
void addDataPoint(String key, Duration duration, {required bool reported}) {
scoreData
.putIfAbsent(
key,
() => Timeseries(key, reported, useCustomWarmUp: useCustomWarmUp),
)
.add(duration.inMicroseconds.toDouble(), isWarmUpValue: isWarmingUp);
}