v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <profile-generator.h>
Public Member Functions | |
V8HeapExplorer (HeapSnapshot *snapshot, SnapshottingProgressReportingInterface *progress) | |
virtual | ~V8HeapExplorer () |
virtual HeapEntry * | AllocateEntry (HeapThing ptr) |
void | AddRootEntries (SnapshotFillerInterface *filler) |
int | EstimateObjectsCount (HeapIterator *iterator) |
bool | IterateAndExtractReferences (SnapshotFillerInterface *filler) |
void | TagGlobalObjects () |
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 851 of file profile-generator.h.
V8HeapExplorer | ( | HeapSnapshot * | snapshot, |
SnapshottingProgressReportingInterface * | progress | ||
) |
Definition at line 1645 of file profile-generator.cc.
|
virtual |
Definition at line 1656 of file profile-generator.cc.
void AddRootEntries | ( | SnapshotFillerInterface * | filler | ) |
Definition at line 1767 of file profile-generator.cc.
References SnapshotFillerInterface::AddEntry(), Heap::IterateRoots(), V8HeapExplorer::kInternalRootObject, and v8::internal::VISIT_ALL.
|
virtual |
Implements HeapEntriesAllocator.
Definition at line 1660 of file profile-generator.cc.
int EstimateObjectsCount | ( | HeapIterator * | iterator | ) |
Definition at line 1790 of file profile-generator.cc.
References v8::internal::NULL.
Definition at line 2316 of file profile-generator.cc.
References JSFunction::cast(), String::cast(), JSReceiver::constructor_name(), Heap::isolate(), String::length(), and v8::internal::NULL.
Referenced by TEST().
bool IterateAndExtractReferences | ( | SnapshotFillerInterface * | filler | ) |
Definition at line 2413 of file profile-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 TagGlobalObjects | ( | ) |
Definition at line 2695 of file profile-generator.cc.
References GlobalObjectsEnumerator::at(), JSObject::cast(), String::cast(), GlobalObjectsEnumerator::count(), v8::internal::CStrVector(), v8::internal::DeleteArray(), Isolate::factory(), StringsStorage::GetName(), Object::GetProperty(), Isolate::global_handles(), GlobalHandles::IterateAllRoots(), HeapSnapshotsCollection::names(), Factory::NewStringFromAscii(), v8::internal::NULL, and HeapObjectsSet::SetTag().
Referenced by HeapSnapshotGenerator::GenerateSnapshot().
|
friend |
Definition at line 954 of file profile-generator.h.
|
friend |
Definition at line 953 of file profile-generator.h.
|
friend |
Definition at line 955 of file profile-generator.h.
|
static |
Definition at line 864 of file profile-generator.h.
Referenced by V8HeapExplorer::AddRootEntries().