|
@@ -38,17 +38,17 @@ void print_stats(allocator_t *allocator) {
|
|
|
int i;
|
|
|
|
|
|
for(i = 0; i < NUM_HEAPS; i++) {
|
|
|
- printf("Heap %d statistics:\n", i);
|
|
|
- printf("Total malloc() calls: %d\n",
|
|
|
+ printf("dmmlib - Heap %d statistics:\n", i);
|
|
|
+ printf("dmmlib - Total malloc() calls: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.num_malloc);
|
|
|
- printf("Total free() calls: %d\n",
|
|
|
+ printf("dmmlib - Total free() calls: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.num_free);
|
|
|
- printf("Memory currently used: %d\n",
|
|
|
+ printf("dmmlib - Memory currently used: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.mem_used);
|
|
|
- printf("Memory currently allocated: %d\n",
|
|
|
+ printf("dmmlib - Memory currently allocated: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.mem_allocated);
|
|
|
#ifdef FUTURE_FEATURES
|
|
|
- printf("Memory currently requested: %d\n",
|
|
|
+ printf("dmmlib - Memory currently requested: %d\n",
|
|
|
(int) allocator->heaps[i].dmm_stats.mem_requested);
|
|
|
#endif /* FUTURE_FEATURES */
|
|
|
}
|