v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <profile-generator.h>
Public Member Functions | |
HeapObjectsMap () | |
void | SnapshotGenerationFinished () |
SnapshotObjectId | FindEntry (Address addr) |
SnapshotObjectId | FindOrAddEntry (Address addr, unsigned int size) |
void | MoveObject (Address from, Address to) |
SnapshotObjectId | last_assigned_id () const |
void | StopHeapObjectsTracking () |
SnapshotObjectId | PushHeapObjectsStats (OutputStream *stream) |
size_t | GetUsedMemorySize () const |
Static Public Member Functions | |
static SnapshotObjectId | GenerateId (v8::RetainedObjectInfo *info) |
static SnapshotObjectId | GetNthGcSubrootId (int delta) |
Static Public Attributes | |
static const int | kObjectIdStep = 2 |
static const SnapshotObjectId | kInternalRootObjectId = 1 |
static const SnapshotObjectId | kGcRootsObjectId |
static const SnapshotObjectId | kNativesRootObjectId |
static const SnapshotObjectId | kGcRootsFirstSubrootId |
static const SnapshotObjectId | kFirstAvailableObjectId |
Definition at line 640 of file profile-generator.h.
HeapObjectsMap | ( | ) |
Definition at line 1286 of file profile-generator.cc.
References List< T, P >::Add(), and v8::internal::NULL.
SnapshotObjectId FindEntry | ( | Address | addr | ) |
Definition at line 1328 of file profile-generator.cc.
References ASSERT, List< T, P >::at(), TemplateHashMapImpl< AllocationPolicy >::Lookup(), v8::internal::NULL, and TemplateHashMapImpl< AllocationPolicy >::occupancy().
Referenced by HeapSnapshotsCollection::FindHeapObjectById(), and HeapSnapshotsCollection::FindObjectId().
SnapshotObjectId FindOrAddEntry | ( | Address | addr, |
unsigned int | size | ||
) |
Definition at line 1338 of file profile-generator.cc.
References List< T, P >::Add(), ASSERT, List< T, P >::at(), HeapObjectsMap::kObjectIdStep, TemplateHashMapImpl< AllocationPolicy >::Lookup(), v8::internal::NULL, and TemplateHashMapImpl< AllocationPolicy >::occupancy().
Referenced by HeapSnapshotsCollection::GetObjectId().
|
static |
Definition at line 1451 of file profile-generator.cc.
References v8::internal::ComputeIntegerHash(), RetainedObjectInfo::GetElementCount(), RetainedObjectInfo::GetHash(), RetainedObjectInfo::GetLabel(), v8::internal::HashSequentialString(), and HEAP.
Referenced by BasicHeapEntriesAllocator::AllocateEntry().
|
inlinestatic |
Definition at line 128 of file profile-generator-inl.h.
References HeapObjectsMap::kGcRootsFirstSubrootId, and HeapObjectsMap::kObjectIdStep.
Referenced by HeapSnapshot::AddGcSubrootEntry().
size_t GetUsedMemorySize | ( | ) | const |
Definition at line 1465 of file profile-generator.cc.
References TemplateHashMapImpl< AllocationPolicy >::capacity().
Referenced by HeapSnapshotsCollection::GetUsedMemorySize().
|
inline |
Definition at line 648 of file profile-generator.h.
References HeapObjectsMap::kObjectIdStep.
Referenced by HeapSnapshotsCollection::last_assigned_id(), and HeapObjectsMap::PushHeapObjectsStats().
Definition at line 1305 of file profile-generator.cc.
References ASSERT, List< T, P >::at(), TemplateHashMapImpl< AllocationPolicy >::Lookup(), v8::internal::NULL, and TemplateHashMapImpl< AllocationPolicy >::Remove().
Referenced by HeapSnapshotsCollection::ObjectMoveEvent().
SnapshotObjectId PushHeapObjectsStats | ( | OutputStream * | stream | ) |
Definition at line 1376 of file profile-generator.cc.
References List< T, P >::Add(), ASSERT, OutputStream::EndOfStream(), List< T, P >::first(), OutputStream::GetChunkSize(), OutputStream::kAbort, List< T, P >::last(), HeapObjectsMap::last_assigned_id(), and OutputStream::WriteHeapStatsChunk().
Referenced by HeapSnapshotsCollection::PushHeapObjectsStats().
void SnapshotGenerationFinished | ( | ) |
Definition at line 1300 of file profile-generator.cc.
Referenced by HeapSnapshotsCollection::SnapshotGenerationFinished().
void StopHeapObjectsTracking | ( | ) |
Definition at line 1359 of file profile-generator.cc.
Referenced by HeapSnapshotsCollection::StopHeapObjectsTracking().
|
static |
Definition at line 664 of file profile-generator.h.
|
static |
Definition at line 663 of file profile-generator.h.
Referenced by HeapObjectsMap::GetNthGcSubrootId().
|
static |
Definition at line 661 of file profile-generator.h.
Referenced by HeapSnapshot::AddGcRootsEntry().
|
static |
Definition at line 660 of file profile-generator.h.
Referenced by HeapSnapshot::AddRootEntry().
|
static |
Definition at line 662 of file profile-generator.h.
|
static |
Definition at line 659 of file profile-generator.h.
Referenced by HeapObjectsMap::FindOrAddEntry(), HeapObjectsMap::GetNthGcSubrootId(), and HeapObjectsMap::last_assigned_id().