Derive {allocated,nmalloc,ndalloc,nrequests}_large stats.

This mildly reduces stats update overhead during normal operation.
This commit is contained in:
Jason Evans
2017-02-13 09:44:46 -08:00
parent ab25d3c987
commit d433471f58
2 changed files with 27 additions and 26 deletions

View File

@@ -104,10 +104,10 @@ struct arena_stats_s {
size_t internal;
size_t resident; /* Derived. */
size_t allocated_large;
uint64_t nmalloc_large;
uint64_t ndalloc_large;
uint64_t nrequests_large;
size_t allocated_large; /* Derived. */
uint64_t nmalloc_large; /* Derived. */
uint64_t ndalloc_large; /* Derived. */
uint64_t nrequests_large; /* Derived. */
/* Number of bytes cached in tcache associated with this arena. */
size_t tcache_bytes; /* Derived. */