mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-19 04:11:11 +00:00
.. | ||
examples | ||
src | ||
tests | ||
.cargo-checksum.json | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
tracing-tree
Instrument your application with tracing and get tree-structured summaries of your application activity with timing information on the console:
483cc0a118/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();