Struct tikv_jemalloc_ctl::profiling::prof_final
source · pub struct prof_final;
Expand description
Use an atexit(3) function to dump final memory usage to a file named according to the pattern <prefix>.<pid>.<seq>.f.heap, where <prefix> is controlled by the opt.prof_prefix and prof.prefix options.
Note that atexit() may allocate memory during application initialization and then deadlock
internally when jemalloc in turn calls atexit()
, so this option is not universally usable
(though the application can register its own atexit()
function with equivalent
functionality).
This option is disabled by default.
§Examples
use tikv_jemalloc_ctl::profiling;
let prof_final = profiling::prof_final::read().unwrap();
println!("dump final memory usage to file: {}", prof_final);
Implementations§
source§impl prof_final
impl prof_final
sourcepub fn mib() -> Result<prof_final_mib>
pub fn mib() -> Result<prof_final_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 prof_final
impl RefUnwindSafe for prof_final
impl Send for prof_final
impl Sync for prof_final
impl Unpin for prof_final
impl UnwindSafe for prof_final
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