From 358ccf206ba142a68c7b5b3622a79cc309107f6d Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 20 Nov 2010 11:48:04 +0100 Subject: [PATCH 1/1] Debug counters don't need to be global No functional change. Signed-off-by: Marco Costalba --- src/misc.cpp | 4 ++-- src/misc.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/misc.cpp b/src/misc.cpp index 2e1060d5..e04dfb2c 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -67,8 +67,8 @@ static const string AppTag = ""; //// Variables //// -uint64_t dbg_cnt0 = 0; -uint64_t dbg_cnt1 = 0; +static uint64_t dbg_cnt0 = 0; +static uint64_t dbg_cnt1 = 0; bool dbg_show_mean = false; bool dbg_show_hit_rate = false; diff --git a/src/misc.h b/src/misc.h index 5f6166ed..1f10905f 100644 --- a/src/misc.h +++ b/src/misc.h @@ -59,9 +59,6 @@ extern void prefetchPawn(Key, int); extern bool dbg_show_mean; extern bool dbg_show_hit_rate; -extern uint64_t dbg_cnt0; -extern uint64_t dbg_cnt1; - extern void dbg_hit_on(bool b); extern void dbg_hit_on_c(bool c, bool b); extern void dbg_before(); -- 2.39.2