Change parser to stack-only version

This commit is contained in:
Ilmir Usmanov
2014-07-09 18:05:19 +04:00
parent f46d5b440c
commit a2350cb88e
12 changed files with 718 additions and 330 deletions
+2
View File
@@ -82,5 +82,7 @@ main( int __unused argc,
}
}
mem_HeapPrint( false);
return 0;
} /* main */
+24 -1
View File
@@ -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 */