v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <heap-snapshot-generator.h>
Public Member Functions | |
V8HeapExplorer (HeapSnapshot *snapshot, SnapshottingProgressReportingInterface *progress, v8::HeapProfiler::ObjectNameResolver *resolver) | |
virtual | ~V8HeapExplorer () |
virtual HeapEntry * | AllocateEntry (HeapThing ptr) |
void | AddRootEntries (SnapshotFiller *filler) |
int | EstimateObjectsCount (HeapIterator *iterator) |
bool | IterateAndExtractReferences (SnapshotFiller *filler) |
void | TagGlobalObjects () |
void | TagCodeObject (Code *code) |
void | TagBuiltinCodeObject (Code *code, const char *name) |
HeapEntry * | AddEntry (Address address, HeapEntry::Type type, const char *name, size_t size) |
Public Member Functions inherited from HeapEntriesAllocator | |
virtual | ~HeapEntriesAllocator () |
Static Public Member Functions | |
static String * | GetConstructorName (JSObject *object) |
Static Public Attributes | |
static HeapObject *const | kInternalRootObject |
Friends | |
class | IndexedReferencesExtractor |
class | GcSubrootsEnumerator |
class | RootsReferencesExtractor |
Definition at line 356 of file heap-snapshot-generator.h.
V8HeapExplorer | ( | HeapSnapshot * | snapshot, |
SnapshottingProgressReportingInterface * | progress, | ||
v8::HeapProfiler::ObjectNameResolver * | resolver | ||
) |
Definition at line 810 of file heap-snapshot-generator.cc.
|
virtual |
Definition at line 824 of file heap-snapshot-generator.cc.
HeapEntry * AddEntry | ( | Address | address, |
HeapEntry::Type | type, | ||
const char * | name, | ||
size_t | size | ||
) |
Definition at line 914 of file heap-snapshot-generator.cc.
References HeapSnapshot::AddEntry(), HeapProfiler::allocation_tracker(), HeapObjectsMap::FindOrAddEntry(), and HeapSnapshot::profiler().
Referenced by V8HeapExplorer::AllocateEntry(), and JSArrayBufferDataEntryAllocator::AllocateEntry().
void AddRootEntries | ( | SnapshotFiller * | filler | ) |
Definition at line 1015 of file heap-snapshot-generator.cc.
References SnapshotFiller::AddEntry(), Heap::IterateRoots(), V8HeapExplorer::kInternalRootObject, and v8::internal::VISIT_ALL.
|
virtual |
Implements HeapEntriesAllocator.
Definition at line 828 of file heap-snapshot-generator.cc.
References V8HeapExplorer::AddEntry().
int EstimateObjectsCount | ( | HeapIterator * | iterator | ) |
Definition at line 1046 of file heap-snapshot-generator.cc.
References v8::internal::NULL, and obj.
Definition at line 1719 of file heap-snapshot-generator.cc.
References JSFunction::cast(), String::cast(), JSReceiver::constructor_name(), Heap::isolate(), String::length(), and v8::internal::NULL.
Referenced by TEST().
bool IterateAndExtractReferences | ( | SnapshotFiller * | filler | ) |
Definition at line 1822 of file heap-snapshot-generator.cc.
References RootsReferencesExtractor::FillReferences(), Heap::IterateRoots(), v8::internal::NULL, SnapshottingProgressReportingInterface::ProgressReport(), SnapshottingProgressReportingInterface::ProgressStep(), RootsReferencesExtractor::SetCollectingAllReferences(), v8::internal::VISIT_ALL, and v8::internal::VISIT_ONLY_STRONG.
void TagBuiltinCodeObject | ( | Code * | code, |
const char * | name | ||
) |
Definition at line 1448 of file heap-snapshot-generator.cc.
References StringsStorage::GetFormatted().
Referenced by RootsReferencesExtractor::FillReferences().
void TagCodeObject | ( | Code * | code | ) |
Definition at line 1453 of file heap-snapshot-generator.cc.
References StringsStorage::GetFormatted(), Code::kind(), Code::major_key(), and v8::internal::STUB.
Referenced by IndexedReferencesExtractor::VisitCodeEntry().
void TagGlobalObjects | ( | ) |
Definition at line 2142 of file heap-snapshot-generator.cc.
References GlobalObjectsEnumerator::at(), GlobalObjectsEnumerator::count(), v8::internal::DeleteArray(), HeapProfiler::ObjectNameResolver::GetName(), Isolate::global_handles(), Heap::isolate(), GlobalHandles::IterateAllRoots(), v8::internal::NULL, HeapObjectsSet::SetTag(), and Utils::ToLocal().
Referenced by HeapSnapshotGenerator::GenerateSnapshot().
|
friend |
Definition at line 477 of file heap-snapshot-generator.h.
|
friend |
Definition at line 476 of file heap-snapshot-generator.h.
|
friend |
Definition at line 478 of file heap-snapshot-generator.h.
|
static |
Definition at line 376 of file heap-snapshot-generator.h.
Referenced by V8HeapExplorer::AddRootEntries().