pub struct GarbageCollectionCounts {
pub eden: u64,
pub full: u64,
pub wall_ms: u64,
pub heap_after_mib: Option<u64>,
}Expand description
One window of ProcessGarbageCollections (CLI 2.1.311+). A collection
still running at the window’s end is not counted.
Fields§
§eden: u64Collections of young objects only (under Bun the process’s first also marks the whole heap).
full: u64Collections of the whole heap.
wall_ms: u64Their summed wall-clock time in ms, not CPU time.
heap_after_mib: Option<u64>Heap in use after the last one, in MiB. Absent if none ran.
Trait Implementations§
Source§impl Clone for GarbageCollectionCounts
impl Clone for GarbageCollectionCounts
Source§impl Debug for GarbageCollectionCounts
impl Debug for GarbageCollectionCounts
Source§impl Default for GarbageCollectionCounts
impl Default for GarbageCollectionCounts
Source§impl<'de> Deserialize<'de> for GarbageCollectionCounts
impl<'de> Deserialize<'de> for GarbageCollectionCounts
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
impl Eq for GarbageCollectionCounts
Source§impl PartialEq for GarbageCollectionCounts
impl PartialEq for GarbageCollectionCounts
Source§impl Serialize for GarbageCollectionCounts
impl Serialize for GarbageCollectionCounts
impl StructuralPartialEq for GarbageCollectionCounts
Auto Trait Implementations§
impl Freeze for GarbageCollectionCounts
impl RefUnwindSafe for GarbageCollectionCounts
impl Send for GarbageCollectionCounts
impl Sync for GarbageCollectionCounts
impl Unpin for GarbageCollectionCounts
impl UnsafeUnpin for GarbageCollectionCounts
impl UnwindSafe for GarbageCollectionCounts
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