From 8c9571376e65c8099ea315261c24e940410386c8 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 18 Jan 2019 15:22:44 -0800 Subject: [PATCH] Fix stats output (rate for total # of requests). The rate calculation for the total row was missing. --- src/stats.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/stats.c b/src/stats.c index 87948809..986f51bd 100644 --- a/src/stats.c +++ b/src/stats.c @@ -876,6 +876,12 @@ stats_arena_print(emitter_t *emitter, unsigned i, bool bins, bool large, col_count_nmalloc.uint64_val = small_nmalloc + large_nmalloc; col_count_ndalloc.uint64_val = small_ndalloc + large_ndalloc; col_count_nrequests.uint64_val = small_nrequests + large_nrequests; + col_count_nmalloc_ps.uint64_val = + rate_per_second(col_count_nmalloc.uint64_val, uptime); + col_count_ndalloc_ps.uint64_val = + rate_per_second(col_count_ndalloc.uint64_val, uptime); + col_count_nrequests_ps.uint64_val = + rate_per_second(col_count_nrequests.uint64_val, uptime); emitter_table_row(emitter, &alloc_count_row); emitter_row_t mem_count_row;