pub struct TelemetryExporter;Expand description
Export telemetry data in various formats.
All methods are stateless and operate on slices of LaunchTelemetry.
Implementations§
Source§impl TelemetryExporter
impl TelemetryExporter
Sourcepub fn to_json(entries: &[LaunchTelemetry]) -> String
pub fn to_json(entries: &[LaunchTelemetry]) -> String
Exports telemetry entries as a JSON array.
Each entry becomes a JSON object with all fields. None values
are serialized as null.
Sourcepub fn to_csv(entries: &[LaunchTelemetry]) -> String
pub fn to_csv(entries: &[LaunchTelemetry]) -> String
Exports telemetry entries as CSV.
The first line is a header row. Missing values are empty cells.
Sourcepub fn to_chrome_trace(entries: &[LaunchTelemetry]) -> String
pub fn to_chrome_trace(entries: &[LaunchTelemetry]) -> String
Exports telemetry entries in Chrome chrome://tracing JSON format.
Each kernel launch becomes a duration event (ph: "X").
Launches without timing data use a duration of 0.
Auto Trait Implementations§
impl Freeze for TelemetryExporter
impl RefUnwindSafe for TelemetryExporter
impl Send for TelemetryExporter
impl Sync for TelemetryExporter
impl Unpin for TelemetryExporter
impl UnsafeUnpin for TelemetryExporter
impl UnwindSafe for TelemetryExporter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more