1
0

add label to say how many bytes were processed

This commit is contained in:
Rokas Puzonas 2023-08-19 10:58:28 +03:00
parent 6ccdbed005
commit 3b8986e008

View File

@ -294,6 +294,7 @@ int rprof_cmp_by_inclusive_duration(const rprof_slot **A, const rprof_slot **B)
if (slot->bytes_processed > 0) {
float time_spent = (float)slot->inclusive_duration / cpu_hz;
float megabytes = (float)slot->bytes_processed / (1024 * 1024);
printf(" %.3fmb", megabytes);
if (megabytes > 10) {
printf(" at %.3fgb/s", (megabytes / 1024) / time_spent);
} else {