Track malloc size with a header for SHOW_MEMORY
This commit is contained in:
@@ -2819,6 +2819,7 @@ void removeKey(Node *n) {
|
||||
|
||||
struct __attribute__((visibility("default"))) PeakPrinter {
|
||||
~PeakPrinter() {
|
||||
printf("malloc bytes: %g\n", double(mallocBytes));
|
||||
printf("Peak malloc bytes: %g\n", double(peakMallocBytes));
|
||||
printf("Node bytes: %g\n", double(nodeBytes));
|
||||
printf("Peak node bytes: %g\n", double(peakNodeBytes));
|
||||
|
Reference in New Issue
Block a user