summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/memblock.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-19 16:25:15 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-19 16:25:15 +0000
commit57f0b08cc1c6be0afc4f563d41cacae7c5d820a9 (patch)
treea34716e970b28475ac50274ce78581d7dcf8e655 /src/pulsecore/memblock.h
parent16ff83f5c0acbd606f23090ebd4cba9ecaf502a7 (diff)
generate per-type memory block statistics
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1293 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/memblock.h')
-rw-r--r--src/pulsecore/memblock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/memblock.h b/src/pulsecore/memblock.h
index 70cd1b9e..620bf726 100644
--- a/src/pulsecore/memblock.h
+++ b/src/pulsecore/memblock.h
@@ -40,6 +40,7 @@ typedef enum pa_memblock_type {
PA_MEMBLOCK_USER, /* User supplied memory, to be freed with free_cb */
PA_MEMBLOCK_FIXED, /* data is a pointer to fixed memory that needs not to be freed */
PA_MEMBLOCK_IMPORTED, /* Memory is imported from another process via shm */
+ PA_MEMBLOCK_TYPE_MAX
} pa_memblock_type_t;
typedef struct pa_memblock pa_memblock;
@@ -84,6 +85,9 @@ struct pa_mempool_stat {
unsigned n_too_large_for_pool;
unsigned n_pool_full;
+
+ unsigned n_allocated_by_type[PA_MEMBLOCK_TYPE_MAX];
+ unsigned n_accumulated_by_type[PA_MEMBLOCK_TYPE_MAX];
};
/* Allocate a new memory block of type PA_MEMBLOCK_MEMPOOL or PA_MEMBLOCK_APPENDED, depending on the size */