added stats

This commit is contained in:
Tony Printezis 2026-04-08 11:16:19 -07:00
parent c0e2a93e4d
commit 52e72a04a1
5 changed files with 109 additions and 3 deletions

View file

@ -51,6 +51,20 @@ struct hpa_shard_nonderived_stats_s {
* Guarded by mtx.
*/
uint64_t ndehugifies;
/*
* Distribution of max nallocs from hpa_alloc() calls.
*
* Guarded by mtx.
*/
uint64_t alloc_batch_max_nallocs[MAX_SEC_NALLOCS + 1];
/*
* Distribution of successful nallocs from hpa_alloc() calls.
*
* Guarded by mtx.
*/
uint64_t alloc_batch_nallocs[MAX_SEC_NALLOCS + 1];
};
/* Completely derived; only used by CTL. */