pub struct TraceConfig {
pub record_mode: Option<TraceConfigRecordMode>,
pub trace_buffer_size_in_kb: Option<f64>,
pub enable_sampling: Option<bool>,
pub enable_systrace: Option<bool>,
pub enable_argument_filter: Option<bool>,
pub included_categories: Option<Vec<String>>,
pub excluded_categories: Option<Vec<String>>,
pub synthetic_delays: Option<Vec<String>>,
pub memory_dump_config: Option<MemoryDumpConfig>,
}
Fields§
§record_mode: Option<TraceConfigRecordMode>
Controls how the trace buffer stores data.
trace_buffer_size_in_kb: Option<f64>
Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value of 200 MB would be used.
enable_sampling: Option<bool>
Turns on JavaScript stack sampling.
enable_systrace: Option<bool>
Turns on system tracing.
enable_argument_filter: Option<bool>
Turns on argument filter.
included_categories: Option<Vec<String>>
Included category filters.
excluded_categories: Option<Vec<String>>
Excluded category filters.
synthetic_delays: Option<Vec<String>>
Configuration to synthesize the delays in tracing.
memory_dump_config: Option<MemoryDumpConfig>
Configuration for memory dump triggers. Used only when “memory-infra” category is enabled.
Implementations§
Source§impl TraceConfig
impl TraceConfig
pub fn builder() -> TraceConfigBuilder
Source§impl TraceConfig
impl TraceConfig
pub const IDENTIFIER: &'static str = "Tracing.TraceConfig"
Trait Implementations§
Source§impl Clone for TraceConfig
impl Clone for TraceConfig
Source§fn clone(&self) -> TraceConfig
fn clone(&self) -> TraceConfig
Returns a copy 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 TraceConfig
impl Debug for TraceConfig
Source§impl Default for TraceConfig
impl Default for TraceConfig
Source§fn default() -> TraceConfig
fn default() -> TraceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TraceConfig
impl<'de> Deserialize<'de> for TraceConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TraceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TraceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TraceConfig
impl PartialEq for TraceConfig
Source§impl Serialize for TraceConfig
impl Serialize for TraceConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TraceConfig
Auto Trait Implementations§
impl Freeze for TraceConfig
impl RefUnwindSafe for TraceConfig
impl Send for TraceConfig
impl Sync for TraceConfig
impl Unpin for TraceConfig
impl UnwindSafe for TraceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more