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

#47 in Debugging

Download history 30226/week @ 2024-08-05 31062/week @ 2024-08-12 30795/week @ 2024-08-19 32822/week @ 2024-08-26 34466/week @ 2024-09-02 31130/week @ 2024-09-09 33347/week @ 2024-09-16 35535/week @ 2024-09-23 32512/week @ 2024-09-30 36443/week @ 2024-10-07 34646/week @ 2024-10-14 39560/week @ 2024-10-21 36812/week @ 2024-10-28 36734/week @ 2024-11-04 36736/week @ 2024-11-11 35116/week @ 2024-11-18

149,372 downloads per month
Used in 46 crates (40 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
~61K SLoC