Fetch time after tctx and only for samples
This commit is contained in:
parent
a5d3dd4059
commit
ad3f3fc561
12
src/large.c
12
src/large.c
@ -372,20 +372,22 @@ void
|
||||
large_prof_info_get(tsd_t *tsd, edata_t *edata, prof_info_t *prof_info,
|
||||
bool reset_recent) {
|
||||
assert(prof_info != NULL);
|
||||
nstime_copy(&prof_info->alloc_time, edata_prof_alloc_time_get(edata));
|
||||
|
||||
prof_tctx_t *alloc_tctx = edata_prof_tctx_get(edata);
|
||||
prof_info->alloc_tctx = alloc_tctx;
|
||||
|
||||
if (reset_recent && (uintptr_t)alloc_tctx > (uintptr_t)1U) {
|
||||
if ((uintptr_t)alloc_tctx > (uintptr_t)1U) {
|
||||
nstime_copy(&prof_info->alloc_time,
|
||||
edata_prof_alloc_time_get(edata));
|
||||
if (reset_recent) {
|
||||
/*
|
||||
* This allocation was a prof sample. Reset the pointer on the
|
||||
* recent allocation record, so that this allocation is
|
||||
* recorded as released.
|
||||
* Reset the pointer on the recent allocation record,
|
||||
* so that this allocation is recorded as released.
|
||||
*/
|
||||
prof_recent_alloc_reset(tsd, edata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
large_prof_tctx_set(edata_t *edata, prof_tctx_t *tctx) {
|
||||
|
Loading…
Reference in New Issue
Block a user