Skip to content

A tracing subscriber layer for tracing in debugfs using libatrace

License

Notifications You must be signed in to change notification settings

Grainspring/tracing-libatrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tracing-libatrace

Instrument your application with tracing and libatrace, and get stack view of your application activity with timing information using chrome browser:

rustc typeck_fn tracing

rustc borrowck tracing

Setup

After instrumenting your app with tracing, add this subscriber like this:

let subscriber = tracing_subscriber::Registry::default().with(tracing_libatrace::layer().unwrap());
tracing::subscriber::set_global_default(subscriber).unwrap();

Other

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.

About

A tracing subscriber layer for tracing in debugfs using libatrace

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages