allocation stats in INFO

This commit is contained in:
antirez
2011-01-09 15:56:50 +01:00
parent 7cca366bdf
commit 67a1810b32
3 changed files with 39 additions and 12 deletions

View File

@ -40,5 +40,8 @@ size_t zmalloc_used_memory(void);
void zmalloc_enable_thread_safeness(void);
float zmalloc_get_fragmentation_ratio(void);
size_t zmalloc_get_rss(void);
size_t zmalloc_allocations_for_size(size_t size);
#define ZMALLOC_MAX_ALLOC_STAT 256
#endif /* _ZMALLOC_H */