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

#31 in Debugging

Download history 18271/week @ 2023-12-23 17490/week @ 2023-12-30 22723/week @ 2024-01-06 22535/week @ 2024-01-13 21999/week @ 2024-01-20 22672/week @ 2024-01-27 29855/week @ 2024-02-03 29850/week @ 2024-02-10 30335/week @ 2024-02-17 27789/week @ 2024-02-24 30208/week @ 2024-03-02 32062/week @ 2024-03-09 31388/week @ 2024-03-16 30781/week @ 2024-03-23 27578/week @ 2024-03-30 23577/week @ 2024-04-06

117,871 downloads per month
Used in 39 crates (34 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
~79K SLoC