Enable atomic peak memory detection
This gives more precise information about memory usage which might be real handy when doing memory optimization. It works good here for as long as i can tell but if for some reason you'll be experiencing some weird slowdown please let me know.
This commit is contained in:
parent
0609aee4db
commit
f2280661cb
|
@ -71,7 +71,7 @@ enum {
|
|||
#define MEMHEAD_IS_ALIGNED(memhead) ((memhead)->len & (size_t) MEMHEAD_ALIGN_FLAG)
|
||||
|
||||
/* Uncomment this to have proper peak counter. */
|
||||
//#define USE_ATOMIC_MAX
|
||||
#define USE_ATOMIC_MAX
|
||||
|
||||
MEM_INLINE void update_maximum(size_t *maximum_value, size_t value)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue