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

#include <heap-snapshot-generator.h>

Public Member Functions

 HeapSnapshot (HeapProfiler *profiler, const char *title, unsigned uid)
 
void Delete ()
 
HeapProfilerprofiler ()
 
const char * title ()
 
unsigned uid ()
 
size_t RawSnapshotSize () const
 
HeapEntry * root ()
 
HeapEntry * gc_roots ()
 
HeapEntry * natives_root ()
 
HeapEntry * gc_subroot (int index)
 
List< HeapEntry > & entries ()
 
List< HeapGraphEdge > & edges ()
 
List< HeapGraphEdge * > & children ()
 
void RememberLastJSObjectId ()
 
SnapshotObjectId max_snapshot_js_object_id () const
 
HeapEntry * AddEntry (HeapEntry::Type type, const char *name, SnapshotObjectId id, size_t size, unsigned trace_node_id)
 
HeapEntry * AddRootEntry ()
 
HeapEntry * AddGcRootsEntry ()
 
HeapEntry * AddGcSubrootEntry (int tag)
 
HeapEntry * AddNativesRootEntry ()
 
HeapEntry * GetEntryById (SnapshotObjectId id)
 
List< HeapEntry * > * GetSortedEntriesList ()
 
void FillChildren ()
 
void Print (int max_depth)
 
void PrintEntriesSize ()
 

Friends

class HeapSnapshotTester
 

Detailed Description

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

Constructor & Destructor Documentation

HeapSnapshot ( HeapProfiler profiler,
const char *  title,
unsigned  uid 
)

Member Function Documentation

HeapEntry * AddEntry ( HeapEntry::Type  type,
const char *  name,
SnapshotObjectId  id,
size_t  size,
unsigned  trace_node_id 
)
HeapEntry * AddGcRootsEntry ( )
HeapEntry* AddNativesRootEntry ( )
HeapEntry * AddRootEntry ( )
List<HeapGraphEdge*>& children ( )
inline

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

Referenced by HeapSnapshot::FillChildren().

void Delete ( )

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

References HeapProfiler::RemoveSnapshot().

List<HeapGraphEdge>& edges ( )
inline

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

Referenced by HeapSnapshot::FillChildren().

HeapEntry* gc_roots ( )
inline

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

HeapEntry* gc_subroot ( int  index)
inline

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

List< HeapEntry * > * GetSortedEntriesList ( )

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

References List< T, P >::Sort().

Referenced by HeapSnapshot::GetEntryById(), and TEST().

SnapshotObjectId max_snapshot_js_object_id ( ) const
inline

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

HeapEntry* natives_root ( )
inline

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

void Print ( int  max_depth)

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

References HeapSnapshot::root().

void PrintEntriesSize ( )
HeapProfiler* profiler ( )
inline
size_t RawSnapshotSize ( ) const

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

References v8::internal::GetMemoryUsedByList().

void RememberLastJSObjectId ( )
HeapEntry* root ( )
inline

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

Referenced by HeapSnapshot::Print().

const char* title ( )
inline

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

unsigned uid ( )
inline

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

Friends And Related Function Documentation

friend class HeapSnapshotTester
friend

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


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