Change parser to stack-only version
This commit is contained in:
@@ -82,5 +82,7 @@ main( int __unused argc,
|
||||
}
|
||||
}
|
||||
|
||||
mem_HeapPrint( false);
|
||||
|
||||
return 0;
|
||||
} /* main */
|
||||
|
||||
@@ -36,7 +36,7 @@ const size_t test_heap_size = 8 * 1024;
|
||||
const uint32_t test_iters = 16384;
|
||||
|
||||
// Subiterations count
|
||||
const uint32_t test_max_sub_iters = 64;
|
||||
const uint32_t test_max_sub_iters = 32;
|
||||
|
||||
int
|
||||
main( int __unused argc,
|
||||
@@ -93,5 +93,28 @@ main( int __unused argc,
|
||||
}
|
||||
}
|
||||
|
||||
mem_PoolsStats_t stats;
|
||||
mem_PoolsGetStats( &stats);
|
||||
|
||||
__printf("Pools stats:\n");
|
||||
for(mem_PoolChunkType_t type = 0;
|
||||
type < MEM_POOL_CHUNK_TYPE__COUNT;
|
||||
type++)
|
||||
{
|
||||
__printf(" Chunk size: %u\n"
|
||||
" Pools: %lu\n"
|
||||
" Allocated chunks: %lu\n"
|
||||
" Free chunks: %lu\n"
|
||||
" Peak pools: %lu\n"
|
||||
" Peak allocated chunks: %lu\n",
|
||||
mem_GetChunkSize( type),
|
||||
stats.pools_count[ type ],
|
||||
stats.allocated_chunks[ type ],
|
||||
stats.free_chunks[ type ],
|
||||
stats.peak_pools_count[ type ],
|
||||
stats.peak_allocated_chunks[ type ]);
|
||||
}
|
||||
__printf("\n");
|
||||
|
||||
return 0;
|
||||
} /* main */
|
||||
|
||||
Reference in New Issue
Block a user