summaryrefslogtreecommitdiff
path: root/lib/memory.h
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-08-28 16:54:07 -0400
committerLou Berger <lberger@labn.net>2018-08-28 19:22:30 -0400
commit13f1ba41a12a1a5298b0fb0021895284990aaf70 (patch)
treefcc0d85f8c5cc45ecf4296d6808bb9263db42a8c /lib/memory.h
parent96487ee47875a8d47590e17343a4b373ef5adf9d (diff)
lib: qmem show changes (header and max)
add header to show qmem, align table with headers add tracking of max # allocs and max bytes alloc'ed Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'lib/memory.h')
-rw-r--r--lib/memory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/memory.h b/lib/memory.h
index c39f34e3a7..2d6c144778 100644
--- a/lib/memory.h
+++ b/lib/memory.h
@@ -34,9 +34,11 @@ struct memtype {
struct memtype *next, **ref;
const char *name;
_Atomic size_t n_alloc;
+ _Atomic size_t n_max;
_Atomic size_t size;
#ifdef HAVE_MALLOC_USABLE_SIZE
_Atomic size_t total;
+ _Atomic size_t max_size;
#endif
};