pub struct GetHeapUsageReturns { /* private fields */ }Expand description
Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
Implementations§
Source§impl GetHeapUsageReturns
impl GetHeapUsageReturns
Sourcepub fn builder(
used_size: f64,
total_size: f64,
embedder_heap_used_size: f64,
backing_storage_size: f64,
) -> GetHeapUsageReturnsBuilder
pub fn builder( used_size: f64, total_size: f64, embedder_heap_used_size: f64, backing_storage_size: f64, ) -> GetHeapUsageReturnsBuilder
Creates a builder for this type with the required parameters:
used_size: Used JavaScript heap size in bytes.total_size: Allocated JavaScript heap size in bytes.embedder_heap_used_size: Used size in bytes in the embedder’s garbage-collected heap.backing_storage_size: Size in bytes of backing storage for array buffers and external strings.
Sourcepub fn total_size(&self) -> f64
pub fn total_size(&self) -> f64
Allocated JavaScript heap size in bytes.
Sourcepub fn embedder_heap_used_size(&self) -> f64
pub fn embedder_heap_used_size(&self) -> f64
Used size in bytes in the embedder’s garbage-collected heap.
Sourcepub fn backing_storage_size(&self) -> f64
pub fn backing_storage_size(&self) -> f64
Size in bytes of backing storage for array buffers and external strings.
Trait Implementations§
Source§impl Clone for GetHeapUsageReturns
impl Clone for GetHeapUsageReturns
Source§fn clone(&self) -> GetHeapUsageReturns
fn clone(&self) -> GetHeapUsageReturns
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetHeapUsageReturns
impl Debug for GetHeapUsageReturns
Source§impl Default for GetHeapUsageReturns
impl Default for GetHeapUsageReturns
Source§fn default() -> GetHeapUsageReturns
fn default() -> GetHeapUsageReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetHeapUsageReturns
impl<'de> Deserialize<'de> for GetHeapUsageReturns
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetHeapUsageReturns
impl RefUnwindSafe for GetHeapUsageReturns
impl Send for GetHeapUsageReturns
impl Sync for GetHeapUsageReturns
impl Unpin for GetHeapUsageReturns
impl UnsafeUnpin for GetHeapUsageReturns
impl UnwindSafe for GetHeapUsageReturns
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