![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <heap-snapshot-generator.h>
Classes | |
struct | EntryInfo |
struct | TimeInterval |
Public Types | |
enum class | MarkEntryAccessed { kNo , kYes } |
enum class | IsNativeObject { kNo , kYes } |
Public Member Functions | |
HeapObjectsMap (Heap *heap) | |
HeapObjectsMap (const HeapObjectsMap &)=delete | |
HeapObjectsMap & | operator= (const HeapObjectsMap &)=delete |
Heap * | heap () const |
SnapshotObjectId | FindEntry (Address addr) |
SnapshotObjectId | FindOrAddEntry (Address addr, unsigned int size, MarkEntryAccessed accessed=MarkEntryAccessed::kYes, IsNativeObject is_native_object=IsNativeObject::kNo) |
SnapshotObjectId | FindMergedNativeEntry (NativeObject addr) |
void | AddMergedNativeEntry (NativeObject addr, Address canonical_addr) |
bool | MoveObject (Address from, Address to, int size) |
void | UpdateObjectSize (Address addr, int size) |
SnapshotObjectId | last_assigned_id () const |
SnapshotObjectId | get_next_id () |
SnapshotObjectId | get_next_native_id () |
void | StopHeapObjectsTracking () |
SnapshotObjectId | PushHeapObjectsStats (OutputStream *stream, int64_t *timestamp_us) |
const std::vector< TimeInterval > & | samples () const |
void | UpdateHeapObjectsMap () |
void | RemoveDeadEntries () |
Static Public Attributes | |
static const int | kObjectIdStep = 2 |
static const SnapshotObjectId | kInternalRootObjectId = 1 |
static const SnapshotObjectId | kGcRootsObjectId |
static const SnapshotObjectId | kGcRootsFirstSubrootId |
static const SnapshotObjectId | kFirstAvailableObjectId |
static const SnapshotObjectId | kFirstAvailableNativeId = 2 |
Private Attributes | |
SnapshotObjectId | next_id_ |
SnapshotObjectId | next_native_id_ |
base::HashMap | entries_map_ |
std::vector< EntryInfo > | entries_ |
std::vector< TimeInterval > | time_intervals_ |
std::unordered_map< NativeObject, size_t > | merged_native_entries_map_ |
Heap * | heap_ |
Definition at line 306 of file heap-snapshot-generator.h.
|
strong |
Enumerator | |
---|---|
kNo | |
kYes |
Definition at line 321 of file heap-snapshot-generator.h.
|
strong |
Enumerator | |
---|---|
kNo | |
kYes |
Definition at line 317 of file heap-snapshot-generator.h.
|
explicit |
Definition at line 577 of file heap-snapshot-generator.cc.
|
delete |
void v8::internal::HeapObjectsMap::AddMergedNativeEntry | ( | NativeObject | addr, |
Address | canonical_addr ) |
Definition at line 685 of file heap-snapshot-generator.cc.
SnapshotObjectId v8::internal::HeapObjectsMap::FindEntry | ( | Address | addr | ) |
Definition at line 639 of file heap-snapshot-generator.cc.
SnapshotObjectId v8::internal::HeapObjectsMap::FindMergedNativeEntry | ( | NativeObject | addr | ) |
Definition at line 678 of file heap-snapshot-generator.cc.
SnapshotObjectId v8::internal::HeapObjectsMap::FindOrAddEntry | ( | Address | addr, |
unsigned int | size, | ||
MarkEntryAccessed | accessed = MarkEntryAccessed::kYes, | ||
IsNativeObject | is_native_object = IsNativeObject::kNo ) |
Definition at line 649 of file heap-snapshot-generator.cc.
|
inline |
Definition at line 344 of file heap-snapshot-generator.h.
|
inline |
Definition at line 348 of file heap-snapshot-generator.h.
|
inline |
Definition at line 330 of file heap-snapshot-generator.h.
|
inline |
Definition at line 341 of file heap-snapshot-generator.h.
Definition at line 588 of file heap-snapshot-generator.cc.
|
delete |
SnapshotObjectId v8::internal::HeapObjectsMap::PushHeapObjectsStats | ( | OutputStream * | stream, |
int64_t * | timestamp_us ) |
Definition at line 725 of file heap-snapshot-generator.cc.
void v8::internal::HeapObjectsMap::RemoveDeadEntries | ( | ) |
Definition at line 774 of file heap-snapshot-generator.cc.
|
inline |
Definition at line 356 of file heap-snapshot-generator.h.
void v8::internal::HeapObjectsMap::StopHeapObjectsTracking | ( | ) |
Definition at line 697 of file heap-snapshot-generator.cc.
void v8::internal::HeapObjectsMap::UpdateHeapObjectsMap | ( | ) |
Definition at line 699 of file heap-snapshot-generator.cc.
void v8::internal::HeapObjectsMap::UpdateObjectSize | ( | Address | addr, |
int | size ) |
Definition at line 635 of file heap-snapshot-generator.cc.
|
private |
Definition at line 383 of file heap-snapshot-generator.h.
|
private |
Definition at line 382 of file heap-snapshot-generator.h.
|
private |
Definition at line 387 of file heap-snapshot-generator.h.
|
static |
Definition at line 363 of file heap-snapshot-generator.h.
|
static |
Definition at line 362 of file heap-snapshot-generator.h.
|
static |
Definition at line 361 of file heap-snapshot-generator.h.
|
static |
Definition at line 360 of file heap-snapshot-generator.h.
|
static |
Definition at line 359 of file heap-snapshot-generator.h.
|
static |
Definition at line 358 of file heap-snapshot-generator.h.
|
private |
Definition at line 386 of file heap-snapshot-generator.h.
|
private |
Definition at line 379 of file heap-snapshot-generator.h.
|
private |
Definition at line 380 of file heap-snapshot-generator.h.
|
private |
Definition at line 384 of file heap-snapshot-generator.h.