소스 검색

Print the dmmlib word before printing any stat

Ioannis Koutras 13 년 전
부모
커밋
a7d6dde682
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/print_stats.c

+ 6 - 6
src/print_stats.c

@@ -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 */
     }