Commit cbde17ad authored by Florian Fischer's avatar Florian Fischer
Browse files

[calc_stats] fix max name and remember last syscall

parent bc6ed542
......@@ -31,6 +31,9 @@ def read_csv(stream) -> Data:
all_nanos.append(nanos)
all_cycles.append(cycles)
# store the last syscall
data[syscall] = {'nanos': all_nanos, 'cycles': all_cycles}
return data
SyscallStats = T.Mapping[str, float]
......@@ -51,7 +54,7 @@ def calc_stats(data: Data) -> Stats:
values.sort()
measure_stats['min'] = values[0]
measure_stats['may'] = values[-1]
measure_stats['max'] = values[-1]
measure_stats['median'] = numpy.median(values)
upper_quartile = numpy.percentile(values, 75)
measure_stats['upper_quartile'] = upper_quartile
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment