From 3c87629c7e659ca5afe7d6e5961cfe834df17244 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 28 Jan 2016 02:40:59 +0100 Subject: realloc-pool unit-test --- libs/pbd/pbd/reallocpool.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/pbd/pbd') diff --git a/libs/pbd/pbd/reallocpool.h b/libs/pbd/pbd/reallocpool.h index e79cf9df9e..e02250c419 100644 --- a/libs/pbd/pbd/reallocpool.h +++ b/libs/pbd/pbd/reallocpool.h @@ -67,6 +67,10 @@ public: void printstats (); void dumpsegments (); +#ifdef RAP_WITH_CALL_STATS + size_t mem_used () const { return _cur_used; } +#endif + private: std::string _name; size_t _poolsize; -- cgit v1.2.3