Struct v8::HeapStatistics
source · [−]#[repr(C)]pub struct HeapStatistics(_);
Expand description
Collection of V8 heap information.
Instances of this class can be passed to v8::Isolate::GetHeapStatistics to get heap statistics from V8.
Implementations
sourceimpl HeapStatistics
impl HeapStatistics
pub fn total_heap_size(&self) -> usize
pub fn total_heap_size_executable(&self) -> usize
pub fn total_physical_size(&self) -> usize
pub fn total_available_size(&self) -> usize
pub fn total_global_handles_size(&self) -> usize
pub fn used_global_handles_size(&self) -> usize
pub fn used_heap_size(&self) -> usize
pub fn heap_size_limit(&self) -> usize
pub fn malloced_memory(&self) -> usize
pub fn external_memory(&self) -> usize
pub fn peak_malloced_memory(&self) -> usize
pub fn number_of_native_contexts(&self) -> usize
pub fn number_of_detached_contexts(&self) -> usize
sourcepub fn does_zap_garbage(&self) -> usize
pub fn does_zap_garbage(&self) -> usize
Returns a 0/1 boolean, which signifies whether the V8 overwrite heap garbage with a bit pattern.
Trait Implementations
sourceimpl Debug for HeapStatistics
impl Debug for HeapStatistics
Auto Trait Implementations
impl RefUnwindSafe for HeapStatistics
impl Send for HeapStatistics
impl Sync for HeapStatistics
impl Unpin for HeapStatistics
impl UnwindSafe for HeapStatistics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more