diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-27 13:25:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-28 13:09:07 +0100 |
commit | 2c3c657625f5129e3062058a2c83f0020fd6bab5 (patch) | |
tree | 1b6b2a5b125d4dffc1268768bc067f021c35a412 /cpukit/score/src/heapgetinfo.c | |
parent | libcsupport: Delete malloc statistics (diff) | |
download | rtems-2c3c657625f5129e3062058a2c83f0020fd6bab5.tar.bz2 |
score: Return heap stats via _Heap_Get_information
Print out heap statistics via the MALLOC and WKSPACE shell commands.
Diffstat (limited to 'cpukit/score/src/heapgetinfo.c')
-rw-r--r-- | cpukit/score/src/heapgetinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |