20 releases

new 0.3.1 May 23, 2024
0.3.0 Nov 15, 2023
0.2.5 Oct 4, 2023
0.2.4 Jul 5, 2023
0.1.4 Jul 13, 2020

#27 in Debugging

Download history 30858/week @ 2024-02-04 29644/week @ 2024-02-11 29216/week @ 2024-02-18 28783/week @ 2024-02-25 30749/week @ 2024-03-03 31723/week @ 2024-03-10 31797/week @ 2024-03-17 30033/week @ 2024-03-24 27091/week @ 2024-03-31 27666/week @ 2024-04-07 26613/week @ 2024-04-14 26829/week @ 2024-04-21 27032/week @ 2024-04-28 27565/week @ 2024-05-05 26833/week @ 2024-05-12 26046/week @ 2024-05-19

110,480 downloads per month
Used in 40 crates (35 directly)

MIT/Apache

45KB
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
~76K SLoC