move at-exit messages about pool utilization to DEBUG_TRACE
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 6 Nov 2019 16:27:49 +0000 (09:27 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 6 Nov 2019 16:27:49 +0000 (09:27 -0700)
libs/pbd/pool.cc

index 4cb72fd483e65b5e7b1f0307beb8111a56590522..3f61a786fe75a90410f737a8ecc9c2ce8f3d2a56 100644 (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);
 }