From 3b8986e0085e7f5eacbecc039f9b0e6b2d87b45b Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sat, 19 Aug 2023 10:58:28 +0300 Subject: [PATCH] add label to say how many bytes were processed --- src/rprof.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rprof.h b/src/rprof.h index 8bb5e02..fd6d251 100644 --- a/src/rprof.h +++ b/src/rprof.h @@ -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 {