pub struct JemallocConfig { /* private fields */ }Expand description
jemalloc diagnostics configuration.
Implementations§
Source§impl JemallocConfig
impl JemallocConfig
Sourcepub fn prof_active(&self) -> bool
pub fn prof_active(&self) -> bool
Controls whether jemalloc heap allocation sampling is enabled.
See jemalloc’s documentation for details.
Defaults to false.
Sourcepub fn lg_prof_sample(&self) -> usize
pub fn lg_prof_sample(&self) -> usize
The base 2 log of the average interval in allocated bytes between allocation samples.
Sampled allocations will be reset whenever this value is changed. See jemalloc’s documentation for details.
Defaults to 19 (aka a 512 KiB interval).
Trait Implementations§
Source§impl Clone for JemallocConfig
impl Clone for JemallocConfig
Source§fn clone(&self) -> JemallocConfig
fn clone(&self) -> JemallocConfig
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 JemallocConfig
impl Debug for JemallocConfig
Source§impl Default for JemallocConfig
impl Default for JemallocConfig
Source§fn default() -> JemallocConfig
fn default() -> JemallocConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JemallocConfig
impl<'de> Deserialize<'de> for JemallocConfig
Source§fn deserialize<D>(
deserializer: D,
) -> Result<JemallocConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<JemallocConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JemallocConfig
impl PartialEq for JemallocConfig
impl StructuralPartialEq for JemallocConfig
Auto Trait Implementations§
impl Freeze for JemallocConfig
impl RefUnwindSafe for JemallocConfig
impl Send for JemallocConfig
impl Sync for JemallocConfig
impl Unpin for JemallocConfig
impl UnwindSafe for JemallocConfig
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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
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 moreSource§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more