Simplify time setting and getting for prof log

This commit is contained in:
Yinan Zhang 2019-07-15 10:37:09 -07:00
parent 4094b7c03f
commit 4fbbc817c1
4 changed files with 8 additions and 12 deletions

View file

@ -169,7 +169,7 @@ prof_malloc_sample_object(tsdn_t *tsdn, const void *ptr, size_t usize,
* when free() is called. */
nstime_t t = NSTIME_ZERO_INITIALIZER;
nstime_update(&t);
prof_alloc_time_set(tsdn, ptr, NULL, t);
prof_alloc_time_set(tsdn, ptr, t);
malloc_mutex_lock(tsdn, tctx->tdata->lock);
tctx->cnts.curobjs++;