13
0

move at-exit messages about pool utilization to DEBUG_TRACE

This commit is contained in:
Paul Davis 2019-11-06 09:27:49 -07:00
parent d5cfc898e4
commit 24252b92c6

View File

@ -62,10 +62,7 @@ Pool::Pool (string n, unsigned long item_size, unsigned long nitems)
Pool::~Pool ()
{
#ifndef NDEBUG
// TODO: after collecting some stats, use DEBUG::PoolStats here
cerr << "Pool: '" << _name << "' max: " << max_usage << " / " << total() << endmsg;
#endif
DEBUG_TRACE (DEBUG::Pool, string_compose ("Pool: '%1' max: %2 / %3", name(), max_usage, total()));
free (block);
}