mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
add heap in banch mark
This commit is contained in:
parent
17d69cd5fa
commit
70b79389ba
@ -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
|
Loading…
x
Reference in New Issue
Block a user