From d006b46df31f6e5f28237fe40eafb135e684b739 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 28 Nov 2014 11:53:55 +0100 Subject: score: Add heap statistics Add lifetime bytes allocated and freed since they were present in the malloc statistics. Add number of failed allocations. --- cpukit/score/src/heapfree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/score/src/heapfree.c') diff --git a/cpukit/score/src/heapfree.c b/cpukit/score/src/heapfree.c index 4e69146232..13bf5eed81 100644 --- a/cpukit/score/src/heapfree.c +++ b/cpukit/score/src/heapfree.c @@ -201,6 +201,7 @@ bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) --stats->used_blocks; ++stats->frees; stats->free_size += block_size; + stats->lifetime_freed += block_size; return( true ); } -- cgit v1.2.3