Struct jemalloc_ctl::stats::Metadata [] [src]

pub struct Metadata(_);

A type providing access to the total number of bytes dedicated to jemalloc metadata.

This statistic is cached, and is only refreshed when the epoch is advanced. See the Epoch type for more information.

This corresponds to stats.metadata in jemalloc's API.

Examples

use jemalloc_ctl::Epoch;
use jemalloc_ctl::stats::Metadata;

let epoch = Epoch::new().unwrap();
let metadata = Metadata::new().unwrap();

epoch.advance().unwrap();
let size = metadata.get().unwrap();
println!("{} bytes of jemalloc metadata", size);

Methods

impl Metadata
[src]

[src]

Returns a new Metadata.

[src]

Returns the total number of bytes dedicated to jemalloc metadata.

Trait Implementations

impl Copy for Metadata
[src]

impl Clone for Metadata
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more