Skip to main content

TraceConfigBuilder

Struct TraceConfigBuilder 

Source
pub struct TraceConfigBuilder<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> TraceConfigBuilder<'a>

Source

pub fn recordMode(self, recordMode: impl Into<Cow<'a, str>>) -> Self

Controls how the trace buffer stores data. The default is ‘recordUntilFull’.

Source

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.

Source

pub fn enableSampling(self, enableSampling: bool) -> Self

Turns on JavaScript stack sampling.

Source

pub fn enableSystrace(self, enableSystrace: bool) -> Self

Turns on system tracing.

Source

pub fn enableArgumentFilter(self, enableArgumentFilter: bool) -> Self

Turns on argument filter.

Source

pub fn includedCategories(self, includedCategories: Vec<Cow<'a, str>>) -> Self

Included category filters.

Source

pub fn excludedCategories(self, excludedCategories: Vec<Cow<'a, str>>) -> Self

Excluded category filters.

Source

pub fn syntheticDelays(self, syntheticDelays: Vec<Cow<'a, str>>) -> Self

Configuration to synthesize the delays in tracing.

Source

pub fn memoryDumpConfig(self, memoryDumpConfig: MemoryDumpConfig) -> Self

Configuration for memory dump triggers. Used only when “memory-infra” category is enabled.

Source

pub fn build(self) -> TraceConfig<'a>

Trait Implementations§

Source§

impl<'a> Default for TraceConfigBuilder<'a>

Source§

fn default() -> TraceConfigBuilder<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.