mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
Remove the need of helgrind/drd suppression
Using a mutex for protectign the global memory counter should not affect performance.
This commit is contained in:
parent
b059457190
commit
7ad70c26f8
7 changed files with 45 additions and 24 deletions
|
|
@ -76,7 +76,7 @@ void usage(void)
|
|||
|
||||
void memory(void)
|
||||
{
|
||||
log_tag("memory:used:%" PRIu64 "\n", (uint64_t)malloc_counter());
|
||||
log_tag("memory:used:%" PRIu64 "\n", (uint64_t)malloc_counter_get());
|
||||
|
||||
/* size of the block */
|
||||
log_tag("memory:block:%" PRIu64 "\n", (uint64_t)(sizeof(struct snapraid_block)));
|
||||
|
|
@ -85,7 +85,7 @@ void memory(void)
|
|||
log_tag("memory:link:%" PRIu64 "\n", (uint64_t)(sizeof(struct snapraid_link)));
|
||||
log_tag("memory:dir:%" PRIu64 "\n", (uint64_t)(sizeof(struct snapraid_dir)));
|
||||
|
||||
msg_progress("Using %u MiB of memory.\n", (unsigned)(malloc_counter() / (1024 * 1024)));
|
||||
msg_progress("Using %u MiB of memory.\n", (unsigned)(malloc_counter_get() / (1024 * 1024)));
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue