pub struct TraceConfigBuilder { /* private fields */ }Expand description
Builder for TraceConfig.
Implementations§
Source§impl TraceConfigBuilder
impl TraceConfigBuilder
Sourcepub fn record_mode<VALUE: Into<TraceConfigRecordMode>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn record_mode<VALUE: Into<TraceConfigRecordMode>>( &mut self, value: VALUE, ) -> &mut Self
Controls how the trace buffer stores data. The default is recordUntilFull.
Sourcepub fn trace_buffer_size_in_kb<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn trace_buffer_size_in_kb<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value of 200 MB would be used.
Sourcepub fn enable_sampling<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enable_sampling<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Turns on JavaScript stack sampling.
Sourcepub fn enable_systrace<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enable_systrace<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Turns on system tracing.
Sourcepub fn enable_argument_filter<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn enable_argument_filter<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Turns on argument filter.
Sourcepub fn included_categories<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn included_categories<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Included category filters.
Sourcepub fn excluded_categories<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn excluded_categories<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Excluded category filters.
Sourcepub fn synthetic_delays<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn synthetic_delays<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Configuration to synthesize the delays in tracing.
Sourcepub fn memory_dump_config<VALUE: Into<MemoryDumpConfig>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn memory_dump_config<VALUE: Into<MemoryDumpConfig>>( &mut self, value: VALUE, ) -> &mut Self
Configuration for memory dump triggers. Used only when “memory-infra” category is enabled.
Sourcepub fn build(&self) -> Result<TraceConfig, TraceConfigBuilderError>
pub fn build(&self) -> Result<TraceConfig, TraceConfigBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for TraceConfigBuilder
impl RefUnwindSafe for TraceConfigBuilder
impl Send for TraceConfigBuilder
impl Sync for TraceConfigBuilder
impl Unpin for TraceConfigBuilder
impl UnsafeUnpin 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