Crates.io | tracing-libatrace |
lib.rs | tracing-libatrace |
version | 0.1.0 |
source | src |
created_at | 2022-06-08 13:27:18.698811 |
updated_at | 2022-06-08 13:27:18.698811 |
description | A tracing subscriber layer for tracing in debugfs using libatrace |
homepage | |
repository | https://github.com/Grainspring/tracing-libatrace |
max_upload_size | |
id | 602087 |
size | 37,790 |
Instrument your application with tracing and libatrace, and get stack view of your application activity with timing information using chrome browser:
After instrumenting your app with tracing, add this subscriber like this:
let subscriber = tracing_subscriber::Registry::default().with(tracing_libatrace::layer());
tracing::subscriber::set_global_default(subscriber).unwrap();
when running your application, you must run tracing atrace standalone to capture tracing log output,
and then open chrome browser with url chrome://tracing/ to load tracing log and view your application activity with timing and callstack.