|
@@ -43,10 +43,10 @@ void print_stats(allocator_t *allocator) {
|
|
|
(int) allocator->heaps[i].dmm_stats.num_malloc);
|
|
|
printf("dmmlib - Total free() calls: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.num_free);
|
|
|
- printf("dmmlib - Memory currently used: %d\n",
|
|
|
- (int) allocator->heaps[i].dmm_stats.mem_used);
|
|
|
- printf("dmmlib - Memory currently allocated: %d\n",
|
|
|
- (int) allocator->heaps[i].dmm_stats.mem_allocated);
|
|
|
+ printf("dmmlib - Memory currently used: %zu\n",
|
|
|
+ get_used_space(&allocator->heaps[i]));
|
|
|
+ printf("dmmlib - Memory currently allocated: %zu\n",
|
|
|
+ get_allocated_space(&allocator->heaps[i]));
|
|
|
#ifdef FUTURE_FEATURES
|
|
|
printf("dmmlib - Memory currently requested: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.mem_requested);
|