v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
V8HeapExplorer Class Reference

#include <heap-snapshot-generator.h>

Inheritance diagram for V8HeapExplorer:
Collaboration diagram for V8HeapExplorer:

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 StringGetConstructorName (JSObject *object)
 

Static Public Attributes

static HeapObject *const kInternalRootObject
 

Friends

class IndexedReferencesExtractor
 
class GcSubrootsEnumerator
 
class RootsReferencesExtractor
 

Detailed Description

Definition at line 356 of file heap-snapshot-generator.h.

Constructor & Destructor Documentation

~V8HeapExplorer ( )
virtual

Definition at line 824 of file heap-snapshot-generator.cc.

Member Function Documentation

HeapEntry * AddEntry ( Address  address,
HeapEntry::Type  type,
const char *  name,
size_t  size 
)
HeapEntry * AllocateEntry ( HeapThing  ptr)
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.

String * GetConstructorName ( JSObject object)
static
void TagBuiltinCodeObject ( Code code,
const char *  name 
)

Friends And Related Function Documentation

friend class GcSubrootsEnumerator
friend

Definition at line 477 of file heap-snapshot-generator.h.

friend class IndexedReferencesExtractor
friend

Definition at line 476 of file heap-snapshot-generator.h.

friend class RootsReferencesExtractor
friend

Definition at line 478 of file heap-snapshot-generator.h.

Field Documentation

HeapObject *const kInternalRootObject
static
Initial value:
=
reinterpret_cast<HeapObject*>(
static_cast<intptr_t>(HeapObjectsMap::kInternalRootObjectId))

Definition at line 376 of file heap-snapshot-generator.h.

Referenced by V8HeapExplorer::AddRootEntries().


The documentation for this class was generated from the following files: