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

#38 in Debugging

Download history 21861/week @ 2023-11-21 21211/week @ 2023-11-28 22527/week @ 2023-12-05 25228/week @ 2023-12-12 21674/week @ 2023-12-19 16180/week @ 2023-12-26 20814/week @ 2024-01-02 22549/week @ 2024-01-09 22970/week @ 2024-01-16 21229/week @ 2024-01-23 25065/week @ 2024-01-30 31028/week @ 2024-02-06 30027/week @ 2024-02-13 29351/week @ 2024-02-20 28334/week @ 2024-02-27 27182/week @ 2024-03-05

118,920 downloads per month
Used in 35 crates (30 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