#[repr(C)]pub struct JSMemoryUsage {Show 26 fields
pub malloc_size: i64,
pub malloc_count: i64,
pub memory_used_size: i64,
pub malloc_limit: i64,
pub memory_used_count: i64,
pub atom_count: i64,
pub atom_size: i64,
pub str_count: i64,
pub str_size: i64,
pub obj_count: i64,
pub obj_size: i64,
pub prop_count: i64,
pub prop_size: i64,
pub shape_count: i64,
pub shape_size: i64,
pub js_func_count: i64,
pub js_func_size: i64,
pub js_func_code_size: i64,
pub js_func_pc2line_count: i64,
pub js_func_pc2line_size: i64,
pub c_func_count: i64,
pub array_count: i64,
pub fast_array_count: i64,
pub fast_array_elements: i64,
pub binary_object_count: i64,
pub binary_object_size: i64,
}Expand description
JSMemoryUsage: the shape JS_ComputeMemoryUsage fills in.
Field-for-field with the header so that a C program reading s->malloc_count reads the
number we wrote there. Every field is int64_t in the reference; the size_t-valued
ones are widened on the way out.
Fields§
§malloc_size: i64Bytes the allocator holds.
malloc_count: i64Allocations outstanding.
memory_used_size: i64Bytes the allocator can still hand out (0 when unlimited).
malloc_limit: i64Times the allocator was asked for memory.
memory_used_count: i64Bytes the allocator has borrowed from the system.
atom_count: i64Atoms interned.
atom_size: i64Bytes those atoms occupy.
str_count: i64Strings.
str_size: i64Bytes those strings occupy.
obj_count: i64Objects.
obj_size: i64Bytes those objects occupy.
prop_count: i64Properties.
prop_size: i64Bytes those properties occupy.
shape_count: i64Shapes (hidden classes).
shape_size: i64Bytes those shapes occupy.
js_func_count: i64JavaScript functions.
js_func_size: i64Bytes of bytecode.
js_func_code_size: i64Bytecode instructions.
js_func_pc2line_count: i64Bytecode instructions, as a running total.
js_func_pc2line_size: i64Bytes of the pc-to-line table.
c_func_count: i64C functions.
array_count: i64Arrays.
fast_array_count: i64Arrays stored as element vectors.
fast_array_elements: i64Elements in those.
binary_object_count: i64Binary objects.
binary_object_size: i64Bytes they occupy.