add heap in banch mark

This commit is contained in:
lyon tab s7 2021-08-21 20:52:20 +08:00
parent 17d69cd5fa
commit 70b79389ba
2 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,8 @@ void checker_printMemUsage(char *testName)
printf("Testing :%s\r\n", testName);
checker_printMem(" max = ", DMEMS.maxNum * DMEM_BLOCK_SIZE);
checker_printMem(" now = ", DMEMS.blk_num * DMEM_BLOCK_SIZE);
checker_printMem(" heap = ", DMEMS.heapUsed);
checker_printMem(" heap max = ", DMEMS.heapUsedMax);
printf("---------------------------\r\n");
}
void checker_memInfo(void)
@ -38,9 +40,10 @@ void checker_memInfo(void)
}
void checker_assertMemFree()
{
if (0 == DMEMS.blk_num)
if (0 == DMEMS.blk_num && 0 == DMEMS.heapUsed)
{
DMEMS.maxNum = 0;
DMEMS.heapUsedMax = 0;
return;
}
printf("[Error]: Memory free error.\r\n");

@ -1 +1 @@
Subproject commit 939369c319b0e271fc3d8b6d27ed33fcf5dc0fbf
Subproject commit ca7d928ebe60c61cdc73745e256a12c4cd1d4253