Add usize to prof_sample_hook_t

This commit is contained in:
Nathan Slingerland 2024-07-29 11:28:41 -07:00 committed by Qi Wang
parent b66f689764
commit bc32ddff2d
3 changed files with 10 additions and 5 deletions

View file

@ -166,7 +166,7 @@ prof_malloc_sample_object(tsd_t *tsd, const void *ptr, size_t size,
if (prof_sample_hook != NULL) {
prof_bt_t *bt = &tctx->gctx->bt;
pre_reentrancy(tsd, NULL);
prof_sample_hook(ptr, size, bt->vec, bt->len);
prof_sample_hook(ptr, size, bt->vec, bt->len, usize);
post_reentrancy(tsd);
}
}