tracing-perfetto
Overview
tracing-perfetto is a Layer for tracing-subscriber that outputs traces in perfetto's trace packet format that can be viewed with ui.perfetto.dev.
Usage
Add this near the beginning of main:
use PerfettoLayer;
use ;
let layer = new;
registry.with.init;
Open that file with ui.perfetto.dev:

Upgrade perfetto_trace.proto
-
Download the latest perfetto_trace.proto into
protos/peffetto_trace.proto. -
Run
upgrade.rs- Windows
cargo +nightly -Zscript upgrade.rs - *nix
./upgrade.rs
- Windows
-
Create a pull request with the changes.
License
Licensed under the MIT license