Struct tikv_jemalloc_ctl::profiling::prof
source · pub struct prof;
Expand description
Memory profiling enabled/disabled.
If enabled, profile memory allocation activity.
See the opt.prof_active
option for on-the-fly activation/deactivation.
See the opt.lg_prof_sample
option for probabilistic sampling control.
See the opt.prof_accum
option for control of cumulative sample reporting.
See the opt.lg_prof_interval
option for information on interval-triggered profile
dumping, the opt.prof_gdump
option for information on high-water-triggered profile
dumping, and the opt.prof_final
option for final profile dumping.
Profile output is compatible with the jeprof command, which is based on the pprof that is
developed as part of the gperftools package. See HEAP PROFILE FORMAT
for heap profile
format documentation.
§Examples
use tikv_jemalloc_ctl::profiling;
let prof = profiling::prof::read().unwrap();
println!("is memory profiling enabled: {}", prof);
Implementations§
Auto Trait Implementations§
impl Freeze for prof
impl RefUnwindSafe for prof
impl Send for prof
impl Sync for prof
impl Unpin for prof
impl UnwindSafe for prof
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