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/libmisc/shell/main_wkspaceinfo.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/libmisc/shell/main_wkspaceinfo.c')
-rw-r--r-- | cpukit/libmisc/shell/main_wkspaceinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_wkspaceinfo.c b/cpukit/libmisc/shell/main_wkspaceinfo.c index f4f6f4db78..a9906524db 100644 --- a/cpukit/libmisc/shell/main_wkspaceinfo.c +++ b/cpukit/libmisc/shell/main_wkspaceinfo.c @@ -24,7 +24,7 @@ void rtems_shell_print_unified_work_area_message(void) { - printf( "\nC Program Heap and RTEMS Workspace are %s.\n", + printf( "C Program Heap and RTEMS Workspace are %s.\n", rtems_configuration_get_unified_work_area() ? "the same" : "separate" ); } @@ -41,6 +41,7 @@ static int rtems_shell_main_wkspace_info( _Protected_heap_Get_information( &_Workspace_Area, &info ); rtems_shell_print_heap_info( "free", &info.Free ); rtems_shell_print_heap_info( "used", &info.Used ); + rtems_shell_print_heap_stats( &info.Stats ); return 0; } |