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

#include <v8-profiler.h>

Public Member Functions

Handle< StringGetTitle () const
 
const CpuProfileNodeGetTopDownRoot () const
 
int GetSamplesCount () const
 
const CpuProfileNodeGetSample (int index) const
 
int64_t GetStartTime () const
 
int64_t GetEndTime () const
 
void Delete ()
 

Detailed Description

CpuProfile contains a CPU profile in a form of top-down call tree (from main() down to functions that do all the work).

Definition at line 100 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.

Definition at line 7088 of file api.cc.

References ASSERT, Isolate::cpu_profiler(), CpuProfiler::DeleteProfile(), NULL, and profiler().

int64_t GetEndTime ( ) const

Returns time when the profile recording was stopped (in microseconds since the Epoch).

Definition at line 7122 of file api.cc.

References CpuProfile::end_time().

Referenced by TEST().

const CpuProfileNode * GetSample ( int  index) const

Returns profile node corresponding to the top frame the sample at the given index.

Definition at line 7110 of file api.cc.

References CpuProfile::sample().

int GetSamplesCount ( ) const

Returns number of samples recorded. The samples are not recorded unless |record_samples| parameter of CpuProfiler::StartCpuProfiling is true.

Definition at line 7128 of file api.cc.

int64_t GetStartTime ( ) const

Returns time when the profile recording started (in microseconds since the Epoch).

Definition at line 7116 of file api.cc.

References CpuProfile::start_time().

Referenced by TEST().

Handle< String > GetTitle ( ) const

Returns CPU profile title.

Definition at line 7096 of file api.cc.

References Isolate::factory(), Factory::InternalizeUtf8String(), and CpuProfile::title().

const CpuProfileNode * GetTopDownRoot ( ) const

Returns the root node of the top down call tree.

Definition at line 7104 of file api.cc.

References ProfileTree::root(), and CpuProfile::top_down().

Referenced by TEST().


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