add label to say how many bytes were processed
This commit is contained in:
parent
6ccdbed005
commit
3b8986e008
@ -294,6 +294,7 @@ int rprof_cmp_by_inclusive_duration(const rprof_slot **A, const rprof_slot **B)
|
|||||||
if (slot->bytes_processed > 0) {
|
if (slot->bytes_processed > 0) {
|
||||||
float time_spent = (float)slot->inclusive_duration / cpu_hz;
|
float time_spent = (float)slot->inclusive_duration / cpu_hz;
|
||||||
float megabytes = (float)slot->bytes_processed / (1024 * 1024);
|
float megabytes = (float)slot->bytes_processed / (1024 * 1024);
|
||||||
|
printf(" %.3fmb", megabytes);
|
||||||
if (megabytes > 10) {
|
if (megabytes > 10) {
|
||||||
printf(" at %.3fgb/s", (megabytes / 1024) / time_spent);
|
printf(" at %.3fgb/s", (megabytes / 1024) / time_spent);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user