Loading...
Searching...
No Matches
Public Attributes | List of all members
v8::MeasureMemoryDelegate::Result Struct Reference

#include <v8-statistics.h>

Collaboration diagram for v8::MeasureMemoryDelegate::Result:
[legend]

Public Attributes

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.

Member Data Documentation

◆ contexts

const MemorySpan<const Local<Context> >& v8::MeasureMemoryDelegate::Result::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.

◆ sizes_in_bytes

const MemorySpan<const size_t>& v8::MeasureMemoryDelegate::Result::sizes_in_bytes

◆ unattributed_size_in_bytes

size_t v8::MeasureMemoryDelegate::Result::unattributed_size_in_bytes

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

◆ wasm_code_size_in_bytes

size_t v8::MeasureMemoryDelegate::Result::wasm_code_size_in_bytes

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

◆ wasm_metadata_size_in_bytes

size_t v8::MeasureMemoryDelegate::Result::wasm_metadata_size_in_bytes

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


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