pub struct Builder<'c> { /* private fields */ }
Expand description
A builder for SdkLayer
; use SdkLayer::from_config
or
SdkLayer::from_config_bytes
to create a new instance.
Implementations§
Source§impl<'c> Builder<'c>
impl<'c> Builder<'c>
Sourcepub fn with_enable_in_process(self, enable_in_process: bool) -> Self
pub fn with_enable_in_process(self, enable_in_process: bool) -> Self
Enable in-process collection, where traces will be collected by buffers in the Perfetto SDK and spilled to file in-process.
Sourcepub fn with_enable_system(self, enable_system: bool) -> Self
pub fn with_enable_system(self, enable_system: bool) -> Self
Enable system collection, where traces will be sent/collected from the
traced
daemon, and additional system-wide data sources (such as
ftrace
, procfs
, sysfs
, etc.) can be collected too.
Sourcepub fn with_drop_flush_timeout(self, drop_flush_timeout: Duration) -> Self
pub fn with_drop_flush_timeout(self, drop_flush_timeout: Duration) -> Self
The timeout of the final flush that will happen when dropping this layer.
Auto Trait Implementations§
impl<'c> Freeze for Builder<'c>
impl<'c> RefUnwindSafe for Builder<'c>
impl<'c> Send for Builder<'c>
impl<'c> Sync for Builder<'c>
impl<'c> Unpin for Builder<'c>
impl<'c> UnwindSafe for Builder<'c>
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