v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
MeasureMemoryDelegate::Result Struct Reference

#include <v8-statistics.h>

Collaboration diagram for MeasureMemoryDelegate::Result:

Data Fields

const MemorySpan< const Local< Context > > & contexts
 
const MemorySpan< const size_t > & sizes_in_bytes
 
size_t unattributed_size_in_bytes
 
size_t wasm_code_size_in_bytes
 
size_t wasm_metadata_size_in_bytes
 

Detailed Description

Holds the result of a memory measurement request.

Definition at line 65 of file v8-statistics.h.

Field Documentation

◆ contexts

const MemorySpan<const Local<Context> >& contexts

Two spans of equal length: the first includes each context for which ShouldMeasure returned true and that was not garbage collected while the memory measurement was in progress; the second includes the size of the respective context.

Definition at line 72 of file v8-statistics.h.

◆ sizes_in_bytes

const MemorySpan<const size_t>& sizes_in_bytes

Definition at line 73 of file v8-statistics.h.

◆ unattributed_size_in_bytes

size_t unattributed_size_in_bytes

Total size of objects that were not attributed to any context (i.e. are likely shared objects).

Definition at line 79 of file v8-statistics.h.

◆ wasm_code_size_in_bytes

size_t wasm_code_size_in_bytes

Total size of generated code for Wasm (shared across contexts).

Definition at line 82 of file v8-statistics.h.

◆ wasm_metadata_size_in_bytes

size_t wasm_metadata_size_in_bytes

Total size of Wasm metadata (except code; shared across contexts).

Definition at line 85 of file v8-statistics.h.


The documentation for this struct was generated from the following file: