pub struct TraceConfigBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TraceConfigBuilder<'a>
impl<'a> TraceConfigBuilder<'a>
Sourcepub fn record_mode(self, record_mode: impl Into<Cow<'a, str>>) -> Self
pub fn record_mode(self, record_mode: impl Into<Cow<'a, str>>) -> Self
Controls how the trace buffer stores data. The default is ‘recordUntilFull’.
Sourcepub fn trace_buffer_size_in_kb(self, trace_buffer_size_in_kb: f64) -> Self
pub fn trace_buffer_size_in_kb(self, trace_buffer_size_in_kb: f64) -> 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(self, enable_sampling: bool) -> Self
pub fn enable_sampling(self, enable_sampling: bool) -> Self
Turns on JavaScript stack sampling.
Sourcepub fn enable_systrace(self, enable_systrace: bool) -> Self
pub fn enable_systrace(self, enable_systrace: bool) -> Self
Turns on system tracing.
Sourcepub fn enable_argument_filter(self, enable_argument_filter: bool) -> Self
pub fn enable_argument_filter(self, enable_argument_filter: bool) -> Self
Turns on argument filter.
Sourcepub fn included_categories(self, included_categories: Vec<Cow<'a, str>>) -> Self
pub fn included_categories(self, included_categories: Vec<Cow<'a, str>>) -> Self
Included category filters.
Sourcepub fn excluded_categories(self, excluded_categories: Vec<Cow<'a, str>>) -> Self
pub fn excluded_categories(self, excluded_categories: Vec<Cow<'a, str>>) -> Self
Excluded category filters.
Sourcepub fn synthetic_delays(self, synthetic_delays: Vec<Cow<'a, str>>) -> Self
pub fn synthetic_delays(self, synthetic_delays: Vec<Cow<'a, str>>) -> Self
Configuration to synthesize the delays in tracing.
Sourcepub fn memory_dump_config(self, memory_dump_config: MemoryDumpConfig) -> Self
pub fn memory_dump_config(self, memory_dump_config: MemoryDumpConfig) -> Self
Configuration for memory dump triggers. Used only when “memory-infra” category is enabled.
pub fn build(self) -> TraceConfig<'a>
Trait Implementations§
Source§impl<'a> Default for TraceConfigBuilder<'a>
impl<'a> Default for TraceConfigBuilder<'a>
Source§fn default() -> TraceConfigBuilder<'a>
fn default() -> TraceConfigBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TraceConfigBuilder<'a>
impl<'a> RefUnwindSafe for TraceConfigBuilder<'a>
impl<'a> Send for TraceConfigBuilder<'a>
impl<'a> Sync for TraceConfigBuilder<'a>
impl<'a> Unpin for TraceConfigBuilder<'a>
impl<'a> UnsafeUnpin for TraceConfigBuilder<'a>
impl<'a> UnwindSafe for TraceConfigBuilder<'a>
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