make counters available in release and debug build, take2

This commit is contained in:
Dennis Luxen 2013-12-09 09:17:38 -05:00
parent d7e558350b
commit 1e09935501
2 changed files with 0 additions and 5 deletions

View File

@ -361,9 +361,7 @@ inline void PBFParser::loadGroup(_ThreadData * threadData) {
}
inline void PBFParser::loadBlock(_ThreadData * threadData) {
#ifndef NDEBUG
++blockCount;
#endif
threadData->currentGroupID = 0;
threadData->currentEntityID = 0;
}

View File

@ -99,11 +99,8 @@ private:
static const int MAX_BLOB_HEADER_SIZE = 64 * 1024;
static const int MAX_BLOB_SIZE = 32 * 1024 * 1024;
#ifndef NDEBUG
/* counting the number of read blocks and groups */
unsigned groupCount;
unsigned blockCount;
#endif
std::fstream input; // the input stream to parse
boost::shared_ptr<ConcurrentQueue < _ThreadData* > > threadDataQueue;