mirror of
https://github.com/drasko/open-ameba.git
synced 2024-11-22 05:54:17 +00:00
add TaskGetRunTimeStats ATST
This commit is contained in:
parent
d60fd166b1
commit
4d4f8c1b29
8 changed files with 13 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -112,8 +112,20 @@ void fATST(void *arg){
|
||||||
DBG_8195A("\nCLK CPU\t\t%d Hz\nRAM heap\t%d bytes\nTCM heap\t%d bytes\n",
|
DBG_8195A("\nCLK CPU\t\t%d Hz\nRAM heap\t%d bytes\nTCM heap\t%d bytes\n",
|
||||||
HalGetCpuClk(), xPortGetFreeHeapSize(), tcm_heap_freeSpace());
|
HalGetCpuClk(), xPortGetFreeHeapSize(), tcm_heap_freeSpace());
|
||||||
dump_mem_block_list();
|
dump_mem_block_list();
|
||||||
|
u32 saved = ConfigDebugInfo;
|
||||||
|
DBG_INFO_MSG_ON(_DBG_TCM_HEAP_); // On Debug TCM MEM
|
||||||
tcm_heap_dump();
|
tcm_heap_dump();
|
||||||
DBG_8195A("\n");
|
ConfigDebugInfo = saved;
|
||||||
|
printf("\n");
|
||||||
|
#if (configGENERATE_RUN_TIME_STATS == 1)
|
||||||
|
char *cBuffer = pvPortMalloc(512);
|
||||||
|
if(cBuffer != NULL) {
|
||||||
|
vTaskGetRunTimeStats((char *)cBuffer);
|
||||||
|
printf("%s", cBuffer);
|
||||||
|
}
|
||||||
|
vPortFree(cBuffer);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int mp3_cfg_read(void)
|
int mp3_cfg_read(void)
|
||||||
|
|
Loading…
Reference in a new issue