pub struct TraceConfigBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TraceConfigBuilder<'a>
impl<'a> TraceConfigBuilder<'a>
Sourcepub fn recordMode(self, recordMode: impl Into<Cow<'a, str>>) -> Self
pub fn recordMode(self, recordMode: impl Into<Cow<'a, str>>) -> Self
Controls how the trace buffer stores data. The default is ‘recordUntilFull’.
Sourcepub fn traceBufferSizeInKb(self, traceBufferSizeInKb: f64) -> Self
pub fn traceBufferSizeInKb(self, traceBufferSizeInKb: 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 enableSampling(self, enableSampling: bool) -> Self
pub fn enableSampling(self, enableSampling: bool) -> Self
Turns on JavaScript stack sampling.
Sourcepub fn enableSystrace(self, enableSystrace: bool) -> Self
pub fn enableSystrace(self, enableSystrace: bool) -> Self
Turns on system tracing.
Sourcepub fn enableArgumentFilter(self, enableArgumentFilter: bool) -> Self
pub fn enableArgumentFilter(self, enableArgumentFilter: bool) -> Self
Turns on argument filter.
Sourcepub fn includedCategories(self, includedCategories: Vec<Cow<'a, str>>) -> Self
pub fn includedCategories(self, includedCategories: Vec<Cow<'a, str>>) -> Self
Included category filters.
Sourcepub fn excludedCategories(self, excludedCategories: Vec<Cow<'a, str>>) -> Self
pub fn excludedCategories(self, excludedCategories: Vec<Cow<'a, str>>) -> Self
Excluded category filters.
Sourcepub fn syntheticDelays(self, syntheticDelays: Vec<Cow<'a, str>>) -> Self
pub fn syntheticDelays(self, syntheticDelays: Vec<Cow<'a, str>>) -> Self
Configuration to synthesize the delays in tracing.
Sourcepub fn memoryDumpConfig(self, memoryDumpConfig: MemoryDumpConfig) -> Self
pub fn memoryDumpConfig(self, memoryDumpConfig: 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