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 <profile-generator.h>

Public Member Functions

 CpuProfile (const char *title, bool record_samples)
 
void AddPath (const Vector< CodeEntry * > &path)
 
void CalculateTotalTicksAndSamplingRate ()
 
const char * title () const
 
const ProfileTreetop_down () const
 
int samples_count () const
 
ProfileNodesample (int index) const
 
Time start_time () const
 
Time end_time () const
 
void UpdateTicksScale ()
 
void Print ()
 

Detailed Description

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

Constructor & Destructor Documentation

CpuProfile ( const char *  title,
bool  record_samples 
)

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

Member Function Documentation

void AddPath ( const Vector< CodeEntry * > &  path)

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

References ProfileTree::AddPathFromEnd().

void CalculateTotalTicksAndSamplingRate ( )

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

Referenced by CpuProfilesCollection::StopProfiling().

Time end_time ( ) const
inline

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

Referenced by CpuProfile::GetEndTime().

void Print ( )

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

References ProfileTree::Print(), and OS::Print().

Referenced by CpuProfiler::StopProfiling(), and TEST().

ProfileNode* sample ( int  index) const
inline

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

Referenced by CpuProfile::GetSample().

int samples_count ( ) const
inline

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

Time start_time ( ) const
inline

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

Referenced by CpuProfile::GetStartTime().

const char* title ( ) const
inline

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

Referenced by CpuProfile::GetTitle().

const ProfileTree* top_down ( ) const
inline

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

Referenced by CpuProfile::GetTopDownRoot().

void UpdateTicksScale ( )

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