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

#include <v8-profiler.h>

Public Attributes

uint32_t node_id
 
size_t size
 
unsigned int count
 
uint64_t sample_id
 
bool is_live
 
uint64_t sample_interval
 
void * context = nullptr
 

Detailed Description

Represent a single sample recorded for an allocation.

Member Data Documentation

◆ context

void* v8::AllocationProfile::Sample::context = nullptr

Value returned for this sample by the SampleContextExtractor passed to HeapProfiler::StartSamplingHeapProfiler, or nullptr if none was installed. The embedder is responsible for any pointee lifetime required when using it; V8 never dereferences it.

◆ count

unsigned int v8::AllocationProfile::Sample::count

The number of objects of such size that were sampled.

◆ is_live

bool v8::AllocationProfile::Sample::is_live

Indicates whether the sampled allocation is still live or has already been collected by GC.

◆ node_id

uint32_t v8::AllocationProfile::Sample::node_id

id of the node in the profile tree.

◆ sample_id

uint64_t v8::AllocationProfile::Sample::sample_id

Unique time-ordered id of the allocation sample. Can be used to track what samples were added or removed between two snapshots.

◆ sample_interval

uint64_t v8::AllocationProfile::Sample::sample_interval

Sample interval in bytes used when this sample was selected.

◆ size

size_t v8::AllocationProfile::Sample::size

Size of the sampled allocation object.


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