19 releases

0.3.0 Nov 15, 2023
0.2.4 Jul 5, 2023
0.2.2 Nov 11, 2022
0.2.1 May 26, 2022
0.1.4 Jul 13, 2020

#39 in Debugging

Download history 23918/week @ 2024-01-29 31496/week @ 2024-02-05 29444/week @ 2024-02-12 29332/week @ 2024-02-19 28549/week @ 2024-02-26 31550/week @ 2024-03-04 31623/week @ 2024-03-11 31503/week @ 2024-03-18 29479/week @ 2024-03-25 26936/week @ 2024-04-01 27393/week @ 2024-04-08 27124/week @ 2024-04-15 26375/week @ 2024-04-22 27151/week @ 2024-04-29 27453/week @ 2024-05-06 24279/week @ 2024-05-13

108,413 downloads per month
Used in 40 crates (35 directly)

MIT/Apache

44KB
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–11MB
~78K SLoC