Add stats for the size of extent_avail heap

This commit is contained in:
Tyler Etzel
2018-08-01 14:14:33 -07:00
committed by David Goldblatt
parent c14e6c0819
commit 126252a7e6
7 changed files with 31 additions and 1 deletions

View File

@@ -87,6 +87,9 @@ struct arena_stats_s {
*/
atomic_zu_t retained; /* Derived. */
/* Number of extent_t structs allocated by base, but not being used. */
atomic_zu_t extent_avail;
arena_stats_decay_t decay_dirty;
arena_stats_decay_t decay_muzzy;

View File

@@ -196,6 +196,7 @@ struct arena_s {
* Synchronization: extent_avail_mtx.
*/
extent_tree_t extent_avail;
atomic_zu_t extent_avail_cnt;
malloc_mutex_t extent_avail_mtx;
/*