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

#include <profile-generator.h>

Public Types

enum  Type { kFull = v8::HeapSnapshot::kFull }
 

Public Member Functions

 HeapSnapshot (HeapSnapshotsCollection *collection, Type type, const char *title, unsigned uid)
 
void Delete ()
 
HeapSnapshotsCollectioncollection ()
 
Type type ()
 
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, int size)
 
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 573 of file profile-generator.h.

Member Enumeration Documentation

enum Type
Enumerator
kFull 

Definition at line 575 of file profile-generator.h.

Constructor & Destructor Documentation

HeapSnapshot ( HeapSnapshotsCollection collection,
HeapSnapshot::Type  type,
const char *  title,
unsigned  uid 
)

Member Function Documentation

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

Definition at line 598 of file profile-generator.h.

Referenced by HeapSnapshot::FillChildren().

HeapSnapshotsCollection* collection ( )
inline

Definition at line 585 of file profile-generator.h.

void Delete ( )

Definition at line 1135 of file profile-generator.cc.

References HeapSnapshotsCollection::RemoveSnapshot().

List<HeapGraphEdge>& edges ( )
inline

Definition at line 597 of file profile-generator.h.

Referenced by HeapSnapshot::FillChildren().

HeapEntry* gc_roots ( )
inline

Definition at line 591 of file profile-generator.h.

HeapEntry* gc_subroot ( int  index)
inline

Definition at line 593 of file profile-generator.h.

List< HeapEntry * > * GetSortedEntriesList ( )

Definition at line 1240 of file profile-generator.cc.

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

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

SnapshotObjectId max_snapshot_js_object_id ( ) const
inline

Definition at line 600 of file profile-generator.h.

HeapEntry* natives_root ( )
inline

Definition at line 592 of file profile-generator.h.

void Print ( int  max_depth)

Definition at line 1252 of file profile-generator.cc.

References HeapSnapshot::root().

void PrintEntriesSize ( )
size_t RawSnapshotSize ( ) const
void RememberLastJSObjectId ( )
HeapEntry* root ( )
inline

Definition at line 590 of file profile-generator.h.

Referenced by HeapSnapshot::Print().

const char* title ( )
inline

Definition at line 587 of file profile-generator.h.

Type type ( )
inline

Definition at line 586 of file profile-generator.h.

Friends And Related Function Documentation

friend class HeapSnapshotTester
friend

Definition at line 634 of file profile-generator.h.


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