max duration profiler measure

This commit is contained in:
Jan Prochazka
2022-12-18 16:18:56 +01:00
parent 2e37788471
commit 3bbdc56309
4 changed files with 10 additions and 10 deletions

View File

@@ -78,12 +78,14 @@ function aggregateProfileChartEntry(aggr, obj, stepDuration) {
const countAll = (aggr.countAll || 0) + 1;
const sumMillis = (aggr.sumMillis || 0) + obj.millis;
const maxDuration = obj.millis > (aggr.maxDuration || 0) ? obj.millis : aggr.maxDuration || 0;
return {
countAll,
sumMillis,
countPerSec: (countAll / stepDuration) * 1000,
avgDuration: sumMillis / countAll,
maxDuration,
};
// return {