use call_trace_tls::{trace_with, Tls}; #[inline] #[trace_with(Tls)] /// test fn foo() { bar(); } #[trace_with(Tls)] fn bar() { let x = baz(); let y = baz(); println!("x + y = {}", x + y); } #[trace_with(Tls)] fn baz() -> i32 { 15 } #[test] fn test() { foo(); }