Reports the size of the allocated memory.

This commit is contained in:
Andrea Mazzoleni 2011-12-31 12:37:47 +01:00
parent a0ad57d4f1
commit 4e2cb40f98
3 changed files with 16 additions and 0 deletions

View file

@ -1009,6 +1009,8 @@ void state_read(struct snapraid_state* state)
printf("\tblock %u\n", count_block);
printf("\tsymlink %u\n", count_link);
}
printf("Using %u MiB of memory.\n", (unsigned)(malloc_counter() / 1024 / 1024));
}
void state_write(struct snapraid_state* state)