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
HeapObjectsMap Class Reference

#include <heap-snapshot-generator.h>

Public Member Functions

 HeapObjectsMap (Heap *heap)
 
Heapheap () const
 
SnapshotObjectId FindEntry (Address addr)
 
SnapshotObjectId FindOrAddEntry (Address addr, unsigned int size, bool accessed=true)
 
bool MoveObject (Address from, Address to, int size)
 
void UpdateObjectSize (Address addr, int size)
 
SnapshotObjectId last_assigned_id () const
 
void StopHeapObjectsTracking ()
 
SnapshotObjectId PushHeapObjectsStats (OutputStream *stream)
 
size_t GetUsedMemorySize () const
 
SnapshotObjectId GenerateId (v8::RetainedObjectInfo *info)
 
int FindUntrackedObjects ()
 
void UpdateHeapObjectsMap ()
 
void RemoveDeadEntries ()
 

Static Public Member Functions

static SnapshotObjectId GetNthGcSubrootId (int delta)
 

Static Public Attributes

static const int kObjectIdStep = 2
 
static const SnapshotObjectId kInternalRootObjectId = 1
 
static const SnapshotObjectId kGcRootsObjectId
 
static const SnapshotObjectId kNativesRootObjectId
 
static const SnapshotObjectId kGcRootsFirstSubrootId
 
static const SnapshotObjectId kFirstAvailableObjectId
 

Detailed Description

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

Constructor & Destructor Documentation

HeapObjectsMap ( Heap heap)
explicit

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

References List< T, P >::Add(), and v8::internal::NULL.

Member Function Documentation

SnapshotObjectId GetNthGcSubrootId ( int  delta)
inlinestatic
size_t GetUsedMemorySize ( ) const
Heap* heap ( ) const
inline

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

Referenced by AllocationTracker::AllocationEvent().

SnapshotObjectId last_assigned_id ( ) const
inline
void StopHeapObjectsTracking ( )

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

void UpdateObjectSize ( Address  addr,
int  size 
)

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

References HeapObjectsMap::FindOrAddEntry().

Field Documentation

const SnapshotObjectId kGcRootsFirstSubrootId
static
const SnapshotObjectId kGcRootsObjectId
static
const SnapshotObjectId kInternalRootObjectId = 1
static

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

Referenced by HeapSnapshot::AddRootEntry().

const SnapshotObjectId kNativesRootObjectId
static

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

const int kObjectIdStep = 2
static

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