mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-21 02:12:15 +03:00
Pass nstime_t pointer for profiling
This commit is contained in:
parent
7d2bac5a38
commit
45836d7fd3
6 changed files with 7 additions and 7 deletions
|
|
@ -383,6 +383,6 @@ large_prof_tctx_reset(extent_t *extent) {
|
|||
}
|
||||
|
||||
void
|
||||
large_prof_alloc_time_set(extent_t *extent, nstime_t t) {
|
||||
large_prof_alloc_time_set(extent_t *extent, nstime_t *t) {
|
||||
extent_prof_alloc_time_set(extent, t);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ prof_malloc_sample_object(tsd_t *tsd, const void *ptr, size_t usize,
|
|||
* when free() is called. */
|
||||
nstime_t t = NSTIME_ZERO_INITIALIZER;
|
||||
nstime_update(&t);
|
||||
prof_alloc_time_set(tsd, ptr, t);
|
||||
prof_alloc_time_set(tsd, ptr, &t);
|
||||
|
||||
malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock);
|
||||
tctx->cnts.curobjs++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue