mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
add reset_decommit, reset_discard options; maintain more statistics
This commit is contained in:
parent
2cfdbc2cbb
commit
0314373d93
7 changed files with 142 additions and 96 deletions
|
@ -221,7 +221,10 @@ typedef enum mi_option_e {
|
|||
mi_option_page_reset,
|
||||
mi_option_cache_reset,
|
||||
mi_option_pool_commit,
|
||||
mi_option_eager_commit,
|
||||
mi_option_large_os_pages,
|
||||
mi_option_reset_decommits,
|
||||
mi_option_reset_discards,
|
||||
mi_option_secure,
|
||||
mi_option_show_stats,
|
||||
mi_option_show_errors,
|
||||
|
@ -229,6 +232,7 @@ typedef enum mi_option_e {
|
|||
_mi_option_last
|
||||
} mi_option_t;
|
||||
|
||||
|
||||
mi_decl_export bool mi_option_is_enabled(mi_option_t option);
|
||||
mi_decl_export void mi_option_enable(mi_option_t option, bool enable);
|
||||
mi_decl_export void mi_option_enable_default(mi_option_t option, bool enable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue