mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-21 14:29:31 +03:00
histogram: guard _mi_histogram_print with #if MI_STAT>1
otherwise we end up printing a title without any histogram if stats are not enabled.
This commit is contained in:
parent
109ff12cd5
commit
514a90bac3
1 changed files with 2 additions and 0 deletions
|
@ -543,9 +543,11 @@ static void mi_process_done(void) {
|
||||||
if (mi_option_is_enabled(mi_option_show_stats) || mi_option_is_enabled(mi_option_verbose)) {
|
if (mi_option_is_enabled(mi_option_show_stats) || mi_option_is_enabled(mi_option_verbose)) {
|
||||||
mi_stats_print(NULL);
|
mi_stats_print(NULL);
|
||||||
}
|
}
|
||||||
|
#if MI_STAT>1
|
||||||
if (mi_option_is_enabled(mi_option_show_histogram)) {
|
if (mi_option_is_enabled(mi_option_show_histogram)) {
|
||||||
_mi_histogram_print(NULL);
|
_mi_histogram_print(NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
mi_allocator_done();
|
mi_allocator_done();
|
||||||
_mi_verbose_message("process done: 0x%zx\n", _mi_heap_main.thread_id);
|
_mi_verbose_message("process done: 0x%zx\n", _mi_heap_main.thread_id);
|
||||||
os_preloading = true; // don't call the C runtime anymore
|
os_preloading = true; // don't call the C runtime anymore
|
||||||
|
|
Loading…
Add table
Reference in a new issue