From 2c3c657625f5129e3062058a2c83f0020fd6bab5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Nov 2014 13:25:22 +0100 Subject: score: Return heap stats via _Heap_Get_information Print out heap statistics via the MALLOC and WKSPACE shell commands. --- cpukit/score/src/heapgetinfo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/score/src/heapgetinfo.c') diff --git a/cpukit/score/src/heapgetinfo.c b/cpukit/score/src/heapgetinfo.c index 8565be46a5..287d269922 100644 --- a/cpukit/score/src/heapgetinfo.c +++ b/cpukit/score/src/heapgetinfo.c @@ -50,4 +50,5 @@ void _Heap_Get_information( memset( the_info, 0, sizeof(*the_info) ); _Heap_Protection_free_all_delayed_blocks( the_heap ); _Heap_Iterate( the_heap, _Heap_Get_information_visitor, the_info ); + the_info->Stats = the_heap->stats; } -- cgit v1.2.3