summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-28 02:40:59 +0100
committerRobin Gareus <robin@gareus.org>2016-02-22 22:06:47 +0100
commit3c87629c7e659ca5afe7d6e5961cfe834df17244 (patch)
treea76847857d5f8ffa6ebf771d05a547b27ebbd24a /libs/pbd/pbd
parent6cf5e989c0fd5c55db5478fc6c6927bfb7d8c00d (diff)
realloc-pool unit-test
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/reallocpool.h4
1 files changed, 4 insertions, 0 deletions
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;