Mercurial > hg > svcore
changeset 1274:6974bd4efdb5 3.0-integration
Hit counts optional
author | Chris Cannam |
---|---|
date | Mon, 21 Nov 2016 17:08:02 +0000 |
parents | 0b2a2ebf59c9 |
children | ad2d3e0a8b7c |
files | base/HitCount.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/base/HitCount.h Mon Nov 21 16:54:37 2016 +0000 +++ b/base/HitCount.h Mon Nov 21 17:08:02 2016 +0000 @@ -32,6 +32,7 @@ { } ~HitCount() { +#ifndef NO_HIT_COUNTS using namespace std; int total = m_hit + m_partial + m_miss; cerr << "Hit count: " << m_name << ": "; @@ -52,6 +53,7 @@ } } cerr << endl; +#endif } void hit() { ++m_hit; }