pub struct TraceConfig {
pub record_mode: Option<String>,
pub trace_buffer_size_in_kb: Option<i32>,
pub enable_sampling: Option<bool>,
pub enable_systrace: Option<bool>,
pub enable_argument_filter: Option<bool>,
pub included_categories: Option<Vec<String>>,
pub excluded_categories: Option<Vec<String>>,
pub synthetic_delays: Option<Vec<String>>,
pub memory_dump_config: Option<Value>,
}Expand description
Trace configuration.
Fields§
§record_mode: Option<String>Recording mode: recordUntilFull, recordContinuously, recordAsMuchAsPossible.
trace_buffer_size_in_kb: Option<i32>Trace buffer size in kilobytes.
enable_sampling: Option<bool>Whether to enable sampling.
enable_systrace: Option<bool>Whether to enable systrace.
enable_argument_filter: Option<bool>Whether to enable argument filter.
included_categories: Option<Vec<String>>Included categories.
excluded_categories: Option<Vec<String>>Excluded categories.
synthetic_delays: Option<Vec<String>>Synthetic delays configuration.
memory_dump_config: Option<Value>Memory dump configuration.
Implementations§
Source§impl TraceConfig
impl TraceConfig
Sourcepub fn included_categories(self, categories: Vec<String>) -> Self
pub fn included_categories(self, categories: Vec<String>) -> Self
Set included categories.
Sourcepub fn include_category(self, category: impl Into<String>) -> Self
pub fn include_category(self, category: impl Into<String>) -> Self
Add an included category.
Sourcepub fn excluded_categories(self, categories: Vec<String>) -> Self
pub fn excluded_categories(self, categories: Vec<String>) -> Self
Set excluded categories.
Sourcepub fn record_mode(self, mode: impl Into<String>) -> Self
pub fn record_mode(self, mode: impl Into<String>) -> Self
Set record mode.
Trait Implementations§
Source§impl Clone for TraceConfig
impl Clone for TraceConfig
Source§fn clone(&self) -> TraceConfig
fn clone(&self) -> TraceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraceConfig
impl Debug for TraceConfig
Source§impl Default for TraceConfig
impl Default for TraceConfig
Source§fn default() -> TraceConfig
fn default() -> TraceConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraceConfig
impl RefUnwindSafe for TraceConfig
impl Send for TraceConfig
impl Sync for TraceConfig
impl Unpin for TraceConfig
impl UnwindSafe for TraceConfig
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