Added stats about number of bytes cached in tcache currently.

This commit is contained in:
Qi Wang
2016-04-22 18:37:44 -07:00
committed by Qi Wang
parent 12ab4383e9
commit 58424e679d
4 changed files with 40 additions and 0 deletions

View File

@@ -100,6 +100,9 @@ struct arena_stats_s {
uint64_t ndalloc_large;
uint64_t nrequests_large;
/* Number of bytes cached in tcache associated with this arena. */
size_t tcache_bytes;
/* One element for each large size class. */
malloc_large_stats_t lstats[NSIZES - NBINS];
};