TraceTask is a Rust library for starting and running a trace over FIDL. It is intended for use in the ffx daemon and also the TraceRunner component which runs on device to allow detached tracing.
TraceRunner component