Struct tikv_jemalloc_ctl::profiling::prof_leak
source · pub struct prof_leak;
Expand description
Leak reporting enabled/disabled.
If enabled, use an atexit(3)
function to report memory leaks detected by allocation
sampling.
See the opt.prof option for information on analyzing heap profile output.
Works only when combined with opt.prof_final
, otherwise does nothing.
This option is disabled by default.
§Examples
use tikv_jemalloc_ctl::profiling;
let prof_leak = profiling::prof_leak::read().unwrap();
println!("is leak reporting enabled: {}", prof_leak);
Implementations§
Auto Trait Implementations§
impl Freeze for prof_leak
impl RefUnwindSafe for prof_leak
impl Send for prof_leak
impl Sync for prof_leak
impl Unpin for prof_leak
impl UnwindSafe for prof_leak
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