![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <heap-snapshot-generator.h>
Public Member Functions | |
| HeapSnapshot (HeapProfiler *profiler, const char *title, unsigned uid) | |
| void | Delete () |
| HeapProfiler * | profiler () |
| 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, size_t size, unsigned trace_node_id) |
| 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 166 of file heap-snapshot-generator.h.
| HeapSnapshot | ( | HeapProfiler * | profiler, |
| const char * | title, | ||
| unsigned | uid | ||
| ) |
Definition at line 205 of file heap-snapshot-generator.cc.
References VisitorSynchronization::kNumberOfSyncTags, v8::internal::STATIC_CHECK(), and v8::internal::USE().
| HeapEntry * AddEntry | ( | HeapEntry::Type | type, |
| const char * | name, | ||
| SnapshotObjectId | id, | ||
| size_t | size, | ||
| unsigned | trace_node_id | ||
| ) |
Definition at line 282 of file heap-snapshot-generator.cc.
References List< T, P >::Add(), and List< T, P >::last().
Referenced by V8HeapExplorer::AddEntry(), HeapSnapshot::AddGcRootsEntry(), HeapSnapshot::AddGcSubrootEntry(), HeapSnapshot::AddRootEntry(), and BasicHeapEntriesAllocator::AllocateEntry().
| HeapEntry * AddGcRootsEntry | ( | ) |
Definition at line 256 of file heap-snapshot-generator.cc.
References HeapSnapshot::AddEntry(), ASSERT, and HeapObjectsMap::kGcRootsObjectId.
| HeapEntry * AddGcSubrootEntry | ( | int | tag | ) |
Definition at line 268 of file heap-snapshot-generator.cc.
References HeapSnapshot::AddEntry(), ASSERT, HeapObjectsMap::GetNthGcSubrootId(), VisitorSynchronization::kNumberOfSyncTags, and VisitorSynchronization::kTagNames.
| HeapEntry* AddNativesRootEntry | ( | ) |
| HeapEntry * AddRootEntry | ( | ) |
Definition at line 242 of file heap-snapshot-generator.cc.
References HeapSnapshot::AddEntry(), ASSERT, and HeapObjectsMap::kInternalRootObjectId.
|
inline |
Definition at line 185 of file heap-snapshot-generator.h.
Referenced by HeapSnapshot::FillChildren().
| void Delete | ( | ) |
Definition at line 231 of file heap-snapshot-generator.cc.
References HeapProfiler::RemoveSnapshot().
|
inline |
Definition at line 184 of file heap-snapshot-generator.h.
Referenced by HeapSnapshot::FillChildren().
|
inline |
Definition at line 183 of file heap-snapshot-generator.h.
Referenced by HeapSnapshot::FillChildren(), SnapshotFiller::FindEntry(), SnapshotFiller::SetIndexedAutoIndexReference(), SnapshotFiller::SetIndexedReference(), SnapshotFiller::SetNamedAutoIndexReference(), and SnapshotFiller::SetNamedReference().
| void FillChildren | ( | ) |
Definition at line 293 of file heap-snapshot-generator.cc.
References ASSERT, HeapSnapshot::children(), HeapSnapshot::edges(), and HeapSnapshot::entries().
Referenced by HeapSnapshotGenerator::GenerateSnapshot().
|
inline |
Definition at line 178 of file heap-snapshot-generator.h.
|
inline |
Definition at line 180 of file heap-snapshot-generator.h.
| HeapEntry * GetEntryById | ( | SnapshotObjectId | id | ) |
Definition at line 322 of file heap-snapshot-generator.cc.
References List< T, P >::at(), HeapSnapshot::GetSortedEntriesList(), v8::internal::NULL, and v8::internal::SortedListBSearch().
| List< HeapEntry * > * GetSortedEntriesList | ( | ) |
Definition at line 340 of file heap-snapshot-generator.cc.
References List< T, P >::Sort().
Referenced by HeapSnapshot::GetEntryById(), and TEST().
|
inline |
Definition at line 187 of file heap-snapshot-generator.h.
|
inline |
Definition at line 179 of file heap-snapshot-generator.h.
| void Print | ( | int | max_depth | ) |
Definition at line 352 of file heap-snapshot-generator.cc.
References HeapSnapshot::root().
| void PrintEntriesSize | ( | ) |
|
inline |
Definition at line 173 of file heap-snapshot-generator.h.
Referenced by V8HeapExplorer::AddEntry(), and HeapSnapshotJSONSerializer::Serialize().
| size_t RawSnapshotSize | ( | ) | const |
Definition at line 357 of file heap-snapshot-generator.cc.
References v8::internal::GetMemoryUsedByList().
| void RememberLastJSObjectId | ( | ) |
Definition at line 237 of file heap-snapshot-generator.cc.
References HeapProfiler::heap_object_map(), and HeapObjectsMap::last_assigned_id().
Referenced by HeapSnapshotGenerator::GenerateSnapshot().
|
inline |
Definition at line 177 of file heap-snapshot-generator.h.
Referenced by HeapSnapshot::Print().
|
inline |
Definition at line 174 of file heap-snapshot-generator.h.
|
inline |
Definition at line 175 of file heap-snapshot-generator.h.
|
friend |
Definition at line 221 of file heap-snapshot-generator.h.