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

#include <heap-profiler.h>

Public Member Functions

void ObjectMoveEvent (Address from, Address to)
 
void DefineWrapperClass (uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback)
 
v8::RetainedObjectInfoExecuteWrapperClassCallback (uint16_t class_id, Object **wrapper)
 
 INLINE (bool is_profiling())
 

Static Public Member Functions

static void SetUp ()
 
static void TearDown ()
 
static size_t GetMemorySizeUsedByProfiler ()
 
static HeapSnapshotTakeSnapshot (const char *name, int type, v8::ActivityControl *control)
 
static HeapSnapshotTakeSnapshot (String *name, int type, v8::ActivityControl *control)
 
static void StartHeapObjectsTracking ()
 
static void StopHeapObjectsTracking ()
 
static SnapshotObjectId PushHeapObjectsStats (OutputStream *stream)
 
static int GetSnapshotsCount ()
 
static HeapSnapshotGetSnapshot (int index)
 
static HeapSnapshotFindSnapshot (unsigned uid)
 
static SnapshotObjectId GetSnapshotObjectId (Handle< Object > obj)
 
static void DeleteAllSnapshots ()
 

Detailed Description

Definition at line 47 of file heap-profiler.h.

Member Function Documentation

void DefineWrapperClass ( uint16_t  class_id,
v8::HeapProfiler::WrapperInfoCallback  callback 
)
void DeleteAllSnapshots ( )
static

Definition at line 209 of file heap-profiler.cc.

References ASSERT, and v8::internal::NULL.

Referenced by HeapSnapshot::Delete(), and HeapProfiler::DeleteAllSnapshots().

v8::RetainedObjectInfo * ExecuteWrapperClassCallback ( uint16_t  class_id,
Object **  wrapper 
)

Definition at line 117 of file heap-profiler.cc.

References v8::internal::NULL, and Utils::ToLocal().

HeapSnapshot * FindSnapshot ( unsigned  uid)
static
size_t GetMemorySizeUsedByProfiler ( )
static
HeapSnapshot * GetSnapshot ( int  index)
static
int GetSnapshotsCount ( )
static
INLINE ( bool   is_profiling())
inline

Definition at line 77 of file heap-profiler.h.

References HeapSnapshotsCollection::is_tracking_objects().

void ObjectMoveEvent ( Address  from,
Address  to 
)

Definition at line 216 of file heap-profiler.cc.

References HeapSnapshotsCollection::ObjectMoveEvent().

SnapshotObjectId PushHeapObjectsStats ( v8::OutputStream stream)
static

Definition at line 100 of file heap-profiler.cc.

References ASSERT, and v8::internal::NULL.

Referenced by HeapProfiler::PushHeapObjectsStats().

void SetUp ( )
static

Definition at line 53 of file heap-profiler.cc.

References v8::internal::NULL.

void StartHeapObjectsTracking ( )
static

Definition at line 88 of file heap-profiler.cc.

References ASSERT, and v8::internal::NULL.

Referenced by HeapProfiler::StartHeapObjectsTracking().

void StopHeapObjectsTracking ( )
static

Definition at line 94 of file heap-profiler.cc.

References ASSERT, and v8::internal::NULL.

Referenced by HeapProfiler::StopHeapObjectsTracking().

HeapSnapshot * TakeSnapshot ( const char *  name,
int  type,
v8::ActivityControl control 
)
static

Definition at line 68 of file heap-profiler.cc.

References ASSERT, and v8::internal::NULL.

Referenced by HeapProfiler::TakeSnapshot().

HeapSnapshot * TakeSnapshot ( String name,
int  type,
v8::ActivityControl control 
)
static

Definition at line 78 of file heap-profiler.cc.

References ASSERT, and v8::internal::NULL.

void TearDown ( )
static

Definition at line 61 of file heap-profiler.cc.

References v8::internal::NULL.


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