mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 00:23:33 +03:00
Add prof_leak_error option
The option makes the process to exit with error code 1 if a memory leak is detected. This is useful for implementing automated tools that rely on leak detection.
This commit is contained in:
parent
eafd2ac39f
commit
b798fabdf7
8 changed files with 56 additions and 0 deletions
|
|
@ -1530,6 +1530,7 @@ stats_general_print(emitter_t *emitter) {
|
|||
OPT_WRITE_BOOL("prof_gdump")
|
||||
OPT_WRITE_BOOL("prof_final")
|
||||
OPT_WRITE_BOOL("prof_leak")
|
||||
OPT_WRITE_BOOL("prof_leak_error")
|
||||
OPT_WRITE_BOOL("stats_print")
|
||||
OPT_WRITE_CHAR_P("stats_print_opts")
|
||||
OPT_WRITE_BOOL("stats_print")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue