histogram: add pow2 allocation stats via MIMALLOC_SHOW_HISTOGRAM=1

This commit is contained in:
Michael Clark 2022-01-17 10:19:38 +13:00
parent 38a03229c8
commit b797c72b2f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 6BF1D7B357EF3E4F
6 changed files with 93 additions and 1 deletions

View file

@ -126,6 +126,8 @@ void _mi_heap_set_default_direct(mi_heap_t* heap);
// "stats.c"
void _mi_stats_done(mi_stats_t* stats);
void _mi_histogram_log(size_t size);
void _mi_histogram_print(mi_output_fun* out);
mi_msecs_t _mi_clock_now(void);
mi_msecs_t _mi_clock_end(mi_msecs_t start);

View file

@ -303,6 +303,7 @@ typedef enum mi_option_e {
// stable options
mi_option_show_errors,
mi_option_show_stats,
mi_option_show_histogram,
mi_option_verbose,
// the following options are experimental
mi_option_eager_commit,