mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-29 14:40:27 +03:00
Implement/test/fix prof-related mallctl's.
Implement/test/fix the opt.prof_thread_active_init, prof.thread_active_init, and thread.prof.active mallctl's. Test/fix the thread.prof.name mallctl. Refactor opt_prof_active to be read-only and move mutable state into the prof_active variable. Stop leaning on ctl-related locking for protection.
This commit is contained in:
parent
551ebc4364
commit
fc12c0b8bc
11 changed files with 545 additions and 66 deletions
|
|
@ -655,6 +655,8 @@ malloc_conf_init(void)
|
|||
"prof_prefix", "jeprof")
|
||||
CONF_HANDLE_BOOL(opt_prof_active, "prof_active",
|
||||
true)
|
||||
CONF_HANDLE_BOOL(opt_prof_thread_active_init,
|
||||
"prof_thread_active_init", true)
|
||||
CONF_HANDLE_SIZE_T(opt_lg_prof_sample,
|
||||
"lg_prof_sample", 0,
|
||||
(sizeof(uint64_t) << 3) - 1, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue