mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
add debug output for page map; free tld on thread exit
This commit is contained in:
parent
637de624b3
commit
623eaedf33
5 changed files with 55 additions and 18 deletions
|
@ -344,12 +344,14 @@ 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,true,false);
|
||||
#endif
|
||||
// mi_collect(true);
|
||||
// mi_debug_show_arenas(true, true, false);
|
||||
mi_debug_show_arenas(true, false, false);
|
||||
#else
|
||||
mi_collect(false);
|
||||
mi_debug_show_arenas(true, true, false);
|
||||
// mi_stats_print(NULL);
|
||||
#endif
|
||||
#else
|
||||
mi_stats_print(NULL); // so we see rss/commit/elapsed
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue