mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
histogram: add pow2 allocation stats via MIMALLOC_SHOW_HISTOGRAM=1
This commit is contained in:
parent
38a03229c8
commit
b797c72b2f
6 changed files with 93 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue