Guard SHOW_MEMORY-only code

This commit is contained in:
2024-03-14 15:40:09 -07:00
parent 429fe5baed
commit 6f81580953
+3 -1
View File
@@ -699,9 +699,11 @@ __attribute__((__visibility__("default"))) void ConflictSet_destroy(void *cs) {
}
}
#if SHOW_MEMORY
struct __attribute__((visibility("default"))) PeakPrinter {
~PeakPrinter() {
printf("malloc bytes: %g\n", double(mallocBytes));
printf("Peak malloc bytes: %g\n", double(peakMallocBytes));
}
} peakPrinter;
} peakPrinter;
#endif