Skip to main content

GC_prof_stats_s

Struct GC_prof_stats_s 

Source
#[repr(C)]
pub struct GC_prof_stats_s { pub heapsize_full: GC_word, pub free_bytes_full: GC_word, pub unmapped_bytes: GC_word, pub bytes_allocd_since_gc: GC_word, pub allocd_bytes_before_gc: GC_word, pub non_gc_bytes: GC_word, pub gc_no: GC_word, pub markers_m1: GC_word, pub bytes_reclaimed_since_gc: GC_word, pub reclaimed_bytes_before_gc: GC_word, pub expl_freed_bytes_since_gc: GC_word, pub obtained_from_os_bytes: GC_word, }
Expand description

Structure used to query the GC statistics (profiling information). More fields could be added in the future. To preserve compatibility new fields should be added only to the end, and no deprecated fields should be removed from.

Fields§

§heapsize_full: GC_word

Heap size in bytes (including the area unmapped to OS). Same as value of GC_get_heap_size() + GC_get_unmapped_bytes().

§free_bytes_full: GC_word

Total bytes contained in free and unmapped blocks. Same as result of GC_get_free_bytes() + GC_get_unmapped_bytes().

§unmapped_bytes: GC_word

Amount of memory unmapped to OS. Same as the value returned by GC_get_unmapped_bytes().

§bytes_allocd_since_gc: GC_word

Number of bytes allocated since the recent collection. Same as the value returned by GC_get_bytes_since_gc().

§allocd_bytes_before_gc: GC_word

Number of bytes allocated before the recent garbage collection. The value may wrap. Same as the result of GC_get_total_bytes() - GC_get_bytes_since_gc().

§non_gc_bytes: GC_word

Number of bytes not considered candidates for garbage collection. Same as the value returned by GC_get_non_gc_bytes().

§gc_no: GC_word

Garbage collection cycle number. The value may wrap. Same as the value returned by GC_get_gc_no().

§markers_m1: GC_word

Number of marker threads (excluding the initiating one). Same as the value returned by GC_get_parallel() (or 0 if the collector is single-threaded).

§bytes_reclaimed_since_gc: GC_word

Approximate number of reclaimed bytes after the recent garbage collection.

§reclaimed_bytes_before_gc: GC_word

Approximate number of bytes reclaimed before the recent garbage collection. The value may wrap.

§expl_freed_bytes_since_gc: GC_word

Number of bytes freed explicitly since the recent garbage collection. Same as the value returned by GC_get_expl_freed_bytes_since_gc().

§obtained_from_os_bytes: GC_word

Total amount of memory obtained from OS, in bytes.

Trait Implementations§

Source§

impl Clone for GC_prof_stats_s

Source§

fn clone(&self) -> GC_prof_stats_s

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GC_prof_stats_s

Source§

impl Debug for GC_prof_stats_s

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.