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

#include <profile-generator.h>

Public Member Functions

 CpuProfilesCollection (Heap *heap)
 
 ~CpuProfilesCollection ()
 
bool StartProfiling (const char *title, bool record_samples)
 
CpuProfileStopProfiling (const char *title)
 
List< CpuProfile * > * profiles ()
 
const char * GetName (Name *name)
 
const char * GetName (int args_count)
 
const char * GetFunctionName (Name *name)
 
const char * GetFunctionName (const char *name)
 
bool IsLastProfile (const char *title)
 
void RemoveProfile (CpuProfile *profile)
 
CodeEntryNewCodeEntry (Logger::LogEventsAndTags tag, const char *name, const char *name_prefix=CodeEntry::kEmptyNamePrefix, const char *resource_name=CodeEntry::kEmptyResourceName, int line_number=v8::CpuProfileNode::kNoLineNumberInfo, int column_number=v8::CpuProfileNode::kNoColumnNumberInfo)
 
void AddPathToCurrentProfiles (const Vector< CodeEntry * > &path)
 

Static Public Attributes

static const int kMaxSimultaneousProfiles = 100
 

Detailed Description

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

Constructor & Destructor Documentation

CpuProfilesCollection ( Heap heap)
explicit

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

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

Member Function Documentation

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

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

Referenced by ProfileGenerator::RecordTickSample().

const char* GetFunctionName ( Name name)
inline

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

References StringsStorage::GetFunctionName().

Referenced by CpuProfiler::CodeCreateEvent().

const char* GetFunctionName ( const char *  name)
inline

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

References StringsStorage::GetFunctionName().

const char* GetName ( int  args_count)
inline

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

References StringsStorage::GetName().

bool IsLastProfile ( const char *  title)

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

References v8::internal::StrLength().

List<CpuProfile*>* profiles ( )
inline
void RemoveProfile ( CpuProfile profile)

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

References UNREACHABLE.

Referenced by CpuProfiler::DeleteProfile().

bool StartProfiling ( const char *  title,
bool  record_samples 
)
CpuProfile * StopProfiling ( const char *  title)

Field Documentation

const int kMaxSimultaneousProfiles = 100
static

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

Referenced by CpuProfilesCollection::StartProfiling().


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