Struct tikv_jemalloc_ctl::profiling::lg_prof_interval
source · pub struct lg_prof_interval;
Expand description
Average interval (log base 2) between memory profile dumps, as measured in bytes of allocation activity.
The actual interval between dumps may be sporadic because decentralized allocation counters are used to avoid synchronization bottlenecks.
Profiles are dumped to files named according to the pattern <prefix>.<pid>.<seq>.i<iseq>.heap, where <prefix> is controlled by the opt.prof_prefix and prof.prefix options. By default, interval-triggered profile dumping is disabled (encoded as -1).
§Examples
use tikv_jemalloc_ctl::profiling;
let lg_prof_interval = profiling::lg_prof_interval::read().unwrap();
println!("average interval between memory profile dumps: {}", lg_prof_interval);
Implementations§
source§impl lg_prof_interval
impl lg_prof_interval
sourcepub fn mib() -> Result<lg_prof_interval_mib>
pub fn mib() -> Result<lg_prof_interval_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_interval
impl RefUnwindSafe for lg_prof_interval
impl Send for lg_prof_interval
impl Sync for lg_prof_interval
impl Unpin for lg_prof_interval
impl UnwindSafe for lg_prof_interval
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