diff --git a/SkipList.cpp b/SkipList.cpp index 3d4e8ea..d3b7db4 100644 --- a/SkipList.cpp +++ b/SkipList.cpp @@ -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; \ No newline at end of file +} peakPrinter; +#endif \ No newline at end of file