pub struct TraceOptions {
pub duration_ns: Option<i64>,
pub triggers: Option<Vec<Trigger>>,
pub requested_categories: Option<Vec<String>>,
/* private fields */
}
Expand description
Covers how a trace will be run when invoking StartRecording
.
Fields§
§duration_ns: Option<i64>
Determines how long a trace recording will run before terminating in nanoseconds. This is an “at-least” duration, with the actual runtime terminating likely a few dozen milliseconds longer.
If this is not set, a trace will run indefinitely and must be stopped
using StopRecording
. Or by cleanly shutting down the daemon via
ffx daemon stop
or by using the Deamon proxy itself.
triggers: Option<Vec<Trigger>>
The triggers to run against this trace.
requested_categories: Option<Vec<String>>
The requested categories for the trace. These could include groups, or nothing. These categories are expanded and the expanded list is in the TraceConfig. This list is used to support the nice UX of explicitly checking for events with these categories and warn the user if the no events were captured for any of these categories.
Trait Implementations§
Source§impl Clone for TraceOptions
impl Clone for TraceOptions
Source§fn clone(&self) -> TraceOptions
fn clone(&self) -> TraceOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TraceOptions
impl Debug for TraceOptions
Source§impl<D> Decode<TraceOptions, D> for TraceOptionswhere
D: ResourceDialect,
impl<D> Decode<TraceOptions, D> for TraceOptionswhere
D: ResourceDialect,
Source§fn new_empty() -> TraceOptions
fn new_empty() -> TraceOptions
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl Default for TraceOptions
impl Default for TraceOptions
Source§fn default() -> TraceOptions
fn default() -> TraceOptions
Source§impl<D> Encode<TraceOptions, D> for &TraceOptionswhere
D: ResourceDialect,
impl<D> Encode<TraceOptions, D> for &TraceOptionswhere
D: ResourceDialect,
Source§impl PartialEq for TraceOptions
impl PartialEq for TraceOptions
Source§impl TypeMarker for TraceOptions
impl TypeMarker for TraceOptions
Source§type Owned = TraceOptions
type Owned = TraceOptions
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for TraceOptions
impl ValueTypeMarker for TraceOptions
Source§type Borrowed<'a> = &'a TraceOptions
type Borrowed<'a> = &'a TraceOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<TraceOptions as TypeMarker>::Owned,
) -> <TraceOptions as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TraceOptions as TypeMarker>::Owned, ) -> <TraceOptions as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.