If users want to be notified when a heap dump occurs, they can set this hook.
Existing backtrace implementations skip native stack frames from runtimes like Python. The hook allows to augment the backtraces to attribute allocations to native functions in heap profiles.