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

#include <v8-profiler.h>

Public Member Functions

unsigned GetUid () const
 
Handle< StringGetTitle () const
 
const CpuProfileNodeGetBottomUpRoot () const
 
const CpuProfileNodeGetTopDownRoot () const
 
void Delete ()
 

Detailed Description

CpuProfile contains a CPU profile in a form of two call trees:

  • top-down (from main() down to functions that do all the work);
  • bottom-up call graph (in backward direction).

Definition at line 123 of file v8-profiler.h.

Member Function Documentation

void Delete ( )

Deletes the profile and removes it from CpuProfiler's list. All pointers to nodes previously returned become invalid. Profiles with the same uid but obtained using different security token are not deleted, but become inaccessible using FindProfile method. It is embedder's responsibility to call Delete on these profiles.

Definition at line 6036 of file api.cc.

References CpuProfiler::DeleteAllProfiles(), CpuProfiler::DeleteProfile(), CpuProfiler::GetProfilesCount(), and CpuProfiler::HasDetachedProfiles().

const CpuProfileNode * GetBottomUpRoot ( ) const

Returns the root node of the bottom up call tree.

Definition at line 6064 of file api.cc.

Handle< String > GetTitle ( ) const

Returns CPU profile title.

Definition at line 6055 of file api.cc.

References Isolate::factory(), and Factory::LookupAsciiSymbol().

const CpuProfileNode * GetTopDownRoot ( ) const

Returns the root node of the top down call tree.

Definition at line 6072 of file api.cc.

unsigned GetUid ( ) const

Returns CPU profile UID (assigned by the profiler.)

Definition at line 6048 of file api.cc.

Referenced by TEST().


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