mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-02 10:07:51 +03:00
Add sample interval to prof last-N dump
This commit is contained in:
parent
cf2549a149
commit
9545c2cd36
2 changed files with 14 additions and 7 deletions
|
|
@ -540,6 +540,9 @@ prof_recent_alloc_dump(tsd_t *tsd, write_cb_t *write_cb, void *cbopaque) {
|
|||
malloc_mutex_unlock(tsd_tsdn(tsd), &prof_recent_alloc_mtx);
|
||||
|
||||
emitter_begin(&emitter);
|
||||
uint64_t sample_interval = (uint64_t)1U << lg_prof_sample;
|
||||
emitter_json_kv(&emitter, "sample_interval", emitter_type_uint64,
|
||||
&sample_interval);
|
||||
emitter_json_kv(&emitter, "recent_alloc_max", emitter_type_ssize,
|
||||
&dump_max);
|
||||
emitter_json_array_kv_begin(&emitter, "recent_alloc");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue