mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
nice colors for heap maps
This commit is contained in:
parent
4d1d3471cf
commit
8259c0eb7c
5 changed files with 111 additions and 46 deletions
|
@ -260,9 +260,9 @@ static void test_stress(void) {
|
|||
#if !defined(NDEBUG) || defined(MI_TSAN)
|
||||
if ((n + 1) % 10 == 0) {
|
||||
printf("- iterations left: %3d\n", ITER - (n + 1));
|
||||
mi_debug_show_arenas(true, false, false);
|
||||
mi_debug_show_arenas(true);
|
||||
//mi_collect(true);
|
||||
//mi_debug_show_arenas(true, false, false);
|
||||
//mi_debug_show_arenas(true);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -346,13 +346,13 @@ int main(int argc, char** argv) {
|
|||
|
||||
#ifndef USE_STD_MALLOC
|
||||
#ifndef NDEBUG
|
||||
//mi_debug_show_arenas(true, true, false);
|
||||
mi_debug_show_arenas(true, false, false);
|
||||
mi_collect(true);
|
||||
mi_debug_show_arenas(true,false,false);
|
||||
//mi_debug_show_arenas(true);
|
||||
mi_debug_show_arenas(true);
|
||||
//mi_collect(true);
|
||||
//mi_debug_show_arenas(true);
|
||||
#else
|
||||
//mi_collect(true);
|
||||
mi_debug_show_arenas(true,false,false);
|
||||
mi_debug_show_arenas(true);
|
||||
mi_stats_print(NULL);
|
||||
#endif
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue