mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Record request size in prof info
This commit is contained in:
parent
f9bb8dedef
commit
afa489c3c5
7 changed files with 24 additions and 7 deletions
|
|
@ -281,6 +281,7 @@ large_prof_info_get(tsd_t *tsd, edata_t *edata, prof_info_t *prof_info,
|
|||
if ((uintptr_t)alloc_tctx > (uintptr_t)1U) {
|
||||
nstime_copy(&prof_info->alloc_time,
|
||||
edata_prof_alloc_time_get(edata));
|
||||
prof_info->alloc_size = edata_prof_alloc_size_get(edata);
|
||||
if (reset_recent) {
|
||||
/*
|
||||
* Reset the pointer on the recent allocation record,
|
||||
|
|
@ -302,10 +303,11 @@ large_prof_tctx_reset(edata_t *edata) {
|
|||
}
|
||||
|
||||
void
|
||||
large_prof_info_set(edata_t *edata, prof_tctx_t *tctx) {
|
||||
large_prof_info_set(edata_t *edata, prof_tctx_t *tctx, size_t size) {
|
||||
nstime_t t;
|
||||
nstime_prof_init_update(&t);
|
||||
edata_prof_alloc_time_set(edata, &t);
|
||||
edata_prof_alloc_size_set(edata, size);
|
||||
edata_prof_recent_alloc_init(edata);
|
||||
large_prof_tctx_set(edata, tctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue