#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 |
Represent a single sample recorded for an allocation.
| 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.
| unsigned int v8::AllocationProfile::Sample::count |
The number of objects of such size that were sampled.
| bool v8::AllocationProfile::Sample::is_live |
Indicates whether the sampled allocation is still live or has already been collected by GC.
| uint32_t v8::AllocationProfile::Sample::node_id |
id of the node in the profile tree.
| 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.
| uint64_t v8::AllocationProfile::Sample::sample_interval |
Sample interval in bytes used when this sample was selected.
| size_t v8::AllocationProfile::Sample::size |
Size of the sampled allocation object.