pub struct TraceConfigBuilder { /* private fields */ }Available on crate features
experimental and Tracing and IO only.Implementations§
Source§impl TraceConfigBuilder
impl TraceConfigBuilder
Sourcepub fn record_mode(&mut self, v: TraceConfigRecordMode) -> &mut Self
pub fn record_mode(&mut self, v: TraceConfigRecordMode) -> &mut Self
Controls how the trace buffer stores data.
Sourcepub fn enable_sampling(&mut self, v: bool) -> &mut Self
pub fn enable_sampling(&mut self, v: bool) -> &mut Self
Turns on JavaScript stack sampling.
Sourcepub fn enable_systrace(&mut self, v: bool) -> &mut Self
pub fn enable_systrace(&mut self, v: bool) -> &mut Self
Turns on system tracing.
Sourcepub fn enable_argument_filter(&mut self, v: bool) -> &mut Self
pub fn enable_argument_filter(&mut self, v: bool) -> &mut Self
Turns on argument filter.
Sourcepub fn included_categories(&mut self, v: Vec<String>) -> &mut Self
pub fn included_categories(&mut self, v: Vec<String>) -> &mut Self
Included category filters.
Sourcepub fn excluded_categories(&mut self, v: Vec<String>) -> &mut Self
pub fn excluded_categories(&mut self, v: Vec<String>) -> &mut Self
Excluded category filters.
Sourcepub fn synthetic_delays(&mut self, v: Vec<String>) -> &mut Self
pub fn synthetic_delays(&mut self, v: Vec<String>) -> &mut Self
Configuration to synthesize the delays in tracing.
Sourcepub fn memory_dump_config(&mut self, v: MemoryDumpConfig) -> &mut Self
pub fn memory_dump_config(&mut self, v: MemoryDumpConfig) -> &mut Self
Configuration for memory dump triggers. Used only when “memory-infra” category is enabled.
pub fn build(&mut self) -> Result<TraceConfig, &'static str>
Trait Implementations§
Source§impl Clone for TraceConfigBuilder
impl Clone for TraceConfigBuilder
Source§fn clone(&self) -> TraceConfigBuilder
fn clone(&self) -> TraceConfigBuilder
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 TraceConfigBuilder
impl Debug for TraceConfigBuilder
Auto Trait Implementations§
impl Freeze for TraceConfigBuilder
impl RefUnwindSafe for TraceConfigBuilder
impl Send for TraceConfigBuilder
impl Sync for TraceConfigBuilder
impl Unpin for TraceConfigBuilder
impl UnwindSafe for TraceConfigBuilder
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