[FL-1517] Maximum heap block stat for os_info cli cmd. (#564)

* Memmgr: heap_get_max_free_block function. Add "Maximum heap block" to os_info cmd.
* Cli: split os_info into ps and free commands

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
SG
2021-07-05 23:01:02 +10:00
committed by GitHub
parent f153a745eb
commit 54114553c1
3 changed files with 30 additions and 6 deletions

View File

@@ -23,6 +23,11 @@ void memmgr_heap_disable_thread_trace(osThreadId_t thread_id);
*/
size_t memmgr_heap_get_thread_memory(osThreadId_t thread_id);
/** Memmgr heap get the max contiguous block size on the heap
* @return size_t max contiguous block size
*/
size_t memmgr_heap_get_max_free_block();
#ifdef __cplusplus
}
#endif