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

#include <profile-generator.h>

Public Member Functions

 CpuProfilesCollection ()
 
 ~CpuProfilesCollection ()
 
bool StartProfiling (const char *title, unsigned uid)
 
bool StartProfiling (String *title, unsigned uid)
 
CpuProfileStopProfiling (int security_token_id, const char *title, double actual_sampling_rate)
 
List< CpuProfile * > * Profiles (int security_token_id)
 
const char * GetName (String *name)
 
const char * GetName (int args_count)
 
CpuProfileGetProfile (int security_token_id, unsigned uid)
 
bool IsLastProfile (const char *title)
 
void RemoveProfile (CpuProfile *profile)
 
bool HasDetachedProfiles ()
 
CodeEntryNewCodeEntry (Logger::LogEventsAndTags tag, String *name, String *resource_name, int line_number)
 
CodeEntryNewCodeEntry (Logger::LogEventsAndTags tag, const char *name)
 
CodeEntryNewCodeEntry (Logger::LogEventsAndTags tag, const char *name_prefix, String *name)
 
CodeEntryNewCodeEntry (Logger::LogEventsAndTags tag, int args_count)
 
CodeEntryNewCodeEntry (int security_token_id)
 
void AddPathToCurrentProfiles (const Vector< CodeEntry * > &path)
 

Static Public Attributes

static const int kMaxSimultaneousProfiles = 100
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

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

References Semaphore::Signal(), and Semaphore::Wait().

Referenced by ProfileGenerator::RecordTickSample().

const char* GetName ( String name)
inline
const char* GetName ( int  args_count)
inline

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

References StringsStorage::GetName().

CpuProfile * GetProfile ( int  security_token_id,
unsigned  uid 
)
bool HasDetachedProfiles ( )
inline

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

bool IsLastProfile ( const char *  title)

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

References v8::internal::StrLength().

CodeEntry * NewCodeEntry ( Logger::LogEventsAndTags  tag,
String name,
String resource_name,
int  line_number 
)
CodeEntry * NewCodeEntry ( Logger::LogEventsAndTags  tag,
const char *  name 
)
CodeEntry * NewCodeEntry ( Logger::LogEventsAndTags  tag,
const char *  name_prefix,
String name 
)
CodeEntry* NewCodeEntry ( int  security_token_id)
List< CpuProfile * > * Profiles ( int  security_token_id)
bool StartProfiling ( const char *  title,
unsigned  uid 
)
bool StartProfiling ( String title,
unsigned  uid 
)

Field Documentation

const int kMaxSimultaneousProfiles = 100
static

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

Referenced by CpuProfilesCollection::StartProfiling().


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