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

#43 in Debugging

Download history 27340/week @ 2024-04-05 26544/week @ 2024-04-12 27346/week @ 2024-04-19 25819/week @ 2024-04-26 28596/week @ 2024-05-03 26742/week @ 2024-05-10 27952/week @ 2024-05-17 29184/week @ 2024-05-24 29406/week @ 2024-05-31 33363/week @ 2024-06-07 33584/week @ 2024-06-14 35004/week @ 2024-06-21 31754/week @ 2024-06-28 32436/week @ 2024-07-05 34244/week @ 2024-07-12 28555/week @ 2024-07-19

132,973 downloads per month
Used in 42 crates (37 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–8.5MB
~65K SLoC