21 releases

0.4.0 Jul 12, 2024
0.3.0 Nov 15, 2023
0.2.4 Jul 5, 2023
0.2.2 Nov 11, 2022
0.1.4 Jul 13, 2020

#41 in Debugging

Download history 34423/week @ 2024-07-13 34040/week @ 2024-07-20 31521/week @ 2024-07-27 29701/week @ 2024-08-03 31286/week @ 2024-08-10 30452/week @ 2024-08-17 32448/week @ 2024-08-24 34228/week @ 2024-08-31 31266/week @ 2024-09-07 32424/week @ 2024-09-14 36869/week @ 2024-09-21 32141/week @ 2024-09-28 35431/week @ 2024-10-05 35310/week @ 2024-10-12 38880/week @ 2024-10-19 36901/week @ 2024-10-26

151,748 downloads per month
Used in 45 crates (39 directly)

MIT/Apache

46KB
1K SLoC

tracing-tree

Instrument your application with tracing and get tree-structured summaries of your application activity with timing information on the console:

https://github.com/davidbarsky/tracing-tree/blob/483cc0a118c3170f4246d6fa4a9f018a00d8f0a9/examples/quiet.stdout#L1-L28

(Format inspired by slog-term)

Setup

After instrumenting your app with tracing, add this subscriber like this:

let subscriber = Registry::default().with(HierarchicalLayer::new(2));
tracing::subscriber::set_global_default(subscriber).unwrap();

Dependencies

~1.3–8MB
~64K SLoC