pub struct CodeReport {
pub units: usize,
pub static_units: usize,
pub dynamic_units: usize,
pub dynamic_bytes: usize,
pub instructions: usize,
pub instruction_bytes: usize,
pub position_bytes: usize,
pub source_bytes: usize,
pub regexp_programs: usize,
pub regexp_bytes: usize,
}Expand description
What the code units and their side tables hold. The static units (the
code store) are not on the heap: they are not collected and do not count
against the cap. The dynamic units (compiled at run time) are, and
dynamic_bytes counts toward MemoryReport::reserved_bytes.
Fields§
§units: usizeLive units, static and dynamic.
static_units: usize§dynamic_units: usize§dynamic_bytes: usizeBytes the dynamic units hold (CodeUnit::bytes).
instructions: usize§instruction_bytes: usize§position_bytes: usizeBytes of the units’ source-position tables.
source_bytes: usizeBytes of source text kept for Function.prototype.toString.
regexp_programs: usizeCompiled regular-expression programs, and the bytes they hold.
regexp_bytes: usizeTrait Implementations§
Source§impl Clone for CodeReport
impl Clone for CodeReport
impl Copy for CodeReport
Source§impl Debug for CodeReport
impl Debug for CodeReport
Source§impl Default for CodeReport
impl Default for CodeReport
impl Eq for CodeReport
Source§impl PartialEq for CodeReport
impl PartialEq for CodeReport
impl StructuralPartialEq for CodeReport
Auto Trait Implementations§
impl Freeze for CodeReport
impl RefUnwindSafe for CodeReport
impl Send for CodeReport
impl Sync for CodeReport
impl Unpin for CodeReport
impl UnsafeUnpin for CodeReport
impl UnwindSafe for CodeReport
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