Allocation::backtrace
fn backtrace(
self: Allocation
) -> Backtrace
Returns the backtrace of this allocation.
Examples
println(allocations()[0].backtrace());
#00 [simulation] _start [start.S:115]
#01 [libc.so.6] __libc_start_main
#02 [libc.so.6] 7f8bb4f5128f
#03 [simulation] main
#04 [simulation] std::rt::lang_start [rt.rs:165]
#05 [simulation] std::rt::lang_start_internal [rt.rs:147]
#06 [simulation] std::panic::catch_unwind [panic.rs:137]
#07 [simulation] std::panicking::try [panicking.rs:447]
#08 [simulation] std::panicking::try::do_call [panicking.rs:483]
#09 [simulation] std::rt::lang_start_internal::{{closure}} [rt.rs:147]
#10 [simulation] std::rt::init [rt.rs:99]
#11 [simulation] std::sys::unix::thread::guard::init [thread.rs:746]
#12 [simulation] std::sys::unix::thread::guard::get_stack_start_aligned [thread.rs:714]
#13 [simulation] std::sys::unix::thread::guard::get_stack_start [thread.rs:697]
#14 [libc.so.6] pthread_getattr_np
#15 [libc.so.6] 7f8bb4fa127f
#16 [libbytehound.so] malloc [api.rs:293]
#17 [libbytehound.so] bytehound::api::allocate [api.rs:273]
#18 [libbytehound.so] bytehound::unwind::grab [unwind.rs:337]