Fix dbg_mean_of() to enable statistics when called
authorMarco Costalba <mcostalba@gmail.com>
Tue, 30 Dec 2008 11:54:21 +0000 (12:54 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 30 Dec 2008 11:54:21 +0000 (12:54 +0100)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/misc.cpp

index 49a17dcb8661c889f176e990a9aa3453a9c1d922..68f6103c651b0d467072edcd15812939fead7f44 100644 (file)
@@ -96,6 +96,7 @@ void dbg_after() {
 void dbg_mean_of(int v) {
 
     assert(!dbg_show_hit_rate);
+    dbg_show_mean = true;
     dbg_cnt0++;
     dbg_cnt1 += v;
 }