Struct tikv_jemalloc_ctl::profiling::lg_prof_sample
source · pub struct lg_prof_sample;
Expand description
Average interval (log base 2) between allocation samples, as measured in bytes of allocation activity. Increasing the sampling interval decreases profile fidelity, but also decreases the computational overhead.
The default sample interval is 512 KiB (2^19 B).
§Examples
use tikv_jemalloc_ctl::profiling;
let lg_prof_sample = profiling::lg_prof_sample::read().unwrap();
println!("average interval between allocation samples: {}", lg_prof_sample);
Implementations§
source§impl lg_prof_sample
impl lg_prof_sample
sourcepub fn mib() -> Result<lg_prof_sample_mib>
pub fn mib() -> Result<lg_prof_sample_mib>
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
sourcepub fn name() -> &'static Name
pub fn name() -> &'static Name
Key crate::keys::Name
.
Auto Trait Implementations§
impl Freeze for lg_prof_sample
impl RefUnwindSafe for lg_prof_sample
impl Send for lg_prof_sample
impl Sync for lg_prof_sample
impl Unpin for lg_prof_sample
impl UnwindSafe for lg_prof_sample
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