v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <profile-generator.h>
Public Types | |
enum | Type { kFull = v8::HeapSnapshot::kFull } |
Public Member Functions | |
HeapSnapshot (HeapSnapshotsCollection *collection, Type type, const char *title, unsigned uid) | |
void | Delete () |
HeapSnapshotsCollection * | collection () |
Type | type () |
const char * | title () |
unsigned | uid () |
size_t | RawSnapshotSize () const |
HeapEntry * | root () |
HeapEntry * | gc_roots () |
HeapEntry * | natives_root () |
HeapEntry * | gc_subroot (int index) |
List< HeapEntry > & | entries () |
List< HeapGraphEdge > & | edges () |
List< HeapGraphEdge * > & | children () |
void | RememberLastJSObjectId () |
SnapshotObjectId | max_snapshot_js_object_id () const |
HeapEntry * | AddEntry (HeapEntry::Type type, const char *name, SnapshotObjectId id, int size) |
HeapEntry * | AddRootEntry () |
HeapEntry * | AddGcRootsEntry () |
HeapEntry * | AddGcSubrootEntry (int tag) |
HeapEntry * | AddNativesRootEntry () |
HeapEntry * | GetEntryById (SnapshotObjectId id) |
List< HeapEntry * > * | GetSortedEntriesList () |
void | FillChildren () |
void | Print (int max_depth) |
void | PrintEntriesSize () |
Friends | |
class | HeapSnapshotTester |
Definition at line 573 of file profile-generator.h.
enum Type |
Enumerator | |
---|---|
kFull |
Definition at line 575 of file profile-generator.h.
HeapSnapshot | ( | HeapSnapshotsCollection * | collection, |
HeapSnapshot::Type | type, | ||
const char * | title, | ||
unsigned | uid | ||
) |
Definition at line 1111 of file profile-generator.cc.
References VisitorSynchronization::kNumberOfSyncTags, and v8::internal::STATIC_CHECK().
HeapEntry * AddEntry | ( | HeapEntry::Type | type, |
const char * | name, | ||
SnapshotObjectId | id, | ||
int | size | ||
) |
Definition at line 1183 of file profile-generator.cc.
References List< T, P >::Add(), and List< T, P >::last().
Referenced by HeapSnapshot::AddGcRootsEntry(), HeapSnapshot::AddGcSubrootEntry(), HeapSnapshot::AddRootEntry(), and BasicHeapEntriesAllocator::AllocateEntry().
HeapEntry * AddGcRootsEntry | ( | ) |
Definition at line 1159 of file profile-generator.cc.
References HeapSnapshot::AddEntry(), ASSERT, and HeapObjectsMap::kGcRootsObjectId.
HeapEntry * AddGcSubrootEntry | ( | int | tag | ) |
Definition at line 1170 of file profile-generator.cc.
References HeapSnapshot::AddEntry(), ASSERT, HeapObjectsMap::GetNthGcSubrootId(), VisitorSynchronization::kNumberOfSyncTags, and VisitorSynchronization::kTagNames.
HeapEntry* AddNativesRootEntry | ( | ) |
HeapEntry * AddRootEntry | ( | ) |
Definition at line 1146 of file profile-generator.cc.
References HeapSnapshot::AddEntry(), ASSERT, and HeapObjectsMap::kInternalRootObjectId.
|
inline |
Definition at line 598 of file profile-generator.h.
Referenced by HeapSnapshot::FillChildren().
|
inline |
Definition at line 585 of file profile-generator.h.
void Delete | ( | ) |
Definition at line 1135 of file profile-generator.cc.
References HeapSnapshotsCollection::RemoveSnapshot().
|
inline |
Definition at line 597 of file profile-generator.h.
Referenced by HeapSnapshot::FillChildren().
|
inline |
void FillChildren | ( | ) |
Definition at line 1193 of file profile-generator.cc.
References ASSERT, HeapSnapshot::children(), HeapSnapshot::edges(), and HeapSnapshot::entries().
Referenced by HeapSnapshotGenerator::GenerateSnapshot().
|
inline |
Definition at line 591 of file profile-generator.h.
|
inline |
Definition at line 593 of file profile-generator.h.
HeapEntry * GetEntryById | ( | SnapshotObjectId | id | ) |
Definition at line 1222 of file profile-generator.cc.
References List< T, P >::at(), HeapSnapshot::GetSortedEntriesList(), v8::internal::NULL, and v8::internal::SortedListBSearch().
List< HeapEntry * > * GetSortedEntriesList | ( | ) |
Definition at line 1240 of file profile-generator.cc.
References List< T, P >::Sort().
Referenced by HeapSnapshot::GetEntryById(), and TEST().
|
inline |
Definition at line 600 of file profile-generator.h.
|
inline |
Definition at line 592 of file profile-generator.h.
void Print | ( | int | max_depth | ) |
Definition at line 1252 of file profile-generator.cc.
References HeapSnapshot::root().
void PrintEntriesSize | ( | ) |
size_t RawSnapshotSize | ( | ) | const |
Definition at line 1263 of file profile-generator.cc.
References v8::internal::STATIC_CHECK().
Referenced by HeapSnapshotJSONSerializer::Serialize().
void RememberLastJSObjectId | ( | ) |
Definition at line 1141 of file profile-generator.cc.
References HeapSnapshotsCollection::last_assigned_id().
Referenced by HeapSnapshotGenerator::GenerateSnapshot().
|
inline |
Definition at line 590 of file profile-generator.h.
Referenced by HeapSnapshot::Print().
|
inline |
Definition at line 587 of file profile-generator.h.
|
inline |
Definition at line 586 of file profile-generator.h.
|
inline |
Definition at line 588 of file profile-generator.h.
Referenced by HeapSnapshotsCollection::RemoveSnapshot(), and HeapSnapshotsCollection::SnapshotGenerationFinished().
|
friend |
Definition at line 634 of file profile-generator.h.