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§
source§impl 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.