v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <profile-generator.h>
Public Member Functions | |
CpuProfilesCollection () | |
~CpuProfilesCollection () | |
bool | StartProfiling (const char *title, unsigned uid) |
bool | StartProfiling (String *title, unsigned uid) |
CpuProfile * | StopProfiling (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) |
CpuProfile * | GetProfile (int security_token_id, unsigned uid) |
bool | IsLastProfile (const char *title) |
void | RemoveProfile (CpuProfile *profile) |
bool | HasDetachedProfiles () |
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 (Logger::LogEventsAndTags tag, int args_count) |
CodeEntry * | NewCodeEntry (int security_token_id) |
void | AddPathToCurrentProfiles (const Vector< CodeEntry * > &path) |
Static Public Attributes | |
static const int | kMaxSimultaneousProfiles = 100 |
Definition at line 287 of file profile-generator.h.
Definition at line 583 of file profile-generator.cc.
Definition at line 606 of file profile-generator.cc.
Definition at line 837 of file profile-generator.cc.
References Semaphore::Signal(), and Semaphore::Wait().
Referenced by ProfileGenerator::RecordTickSample().
|
inline |
Definition at line 298 of file profile-generator.h.
References StringsStorage::GetName().
Referenced by CpuProfilesCollection::NewCodeEntry(), and CpuProfilesCollection::StartProfiling().
|
inline |
Definition at line 301 of file profile-generator.h.
References StringsStorage::GetName().
CpuProfile * GetProfile | ( | int | security_token_id, |
unsigned | uid | ||
) |
Definition at line 672 of file profile-generator.cc.
References List< T, P >::at(), TokenEnumerator::kNoSecurityToken, and v8::internal::NULL.
Referenced by CpuProfiler::FindProfile(), and CpuProfilesCollection::StopProfiling().
|
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 | ||
) |
Definition at line 782 of file profile-generator.cc.
References CpuProfilesCollection::GetName(), CodeEntry::kEmptyNamePrefix, and TokenEnumerator::kNoSecurityToken.
Referenced by ProfileGenerator::INLINE().
CodeEntry * NewCodeEntry | ( | Logger::LogEventsAndTags | tag, |
const char * | name | ||
) |
Definition at line 797 of file profile-generator.cc.
References CodeEntry::kEmptyNamePrefix, CpuProfileNode::kNoLineNumberInfo, and TokenEnumerator::kNoSecurityToken.
CodeEntry * NewCodeEntry | ( | Logger::LogEventsAndTags | tag, |
const char * | name_prefix, | ||
String * | name | ||
) |
Definition at line 810 of file profile-generator.cc.
References CpuProfilesCollection::GetName(), TokenEnumerator::kInheritsSecurityToken, and CpuProfileNode::kNoLineNumberInfo.
CodeEntry * NewCodeEntry | ( | Logger::LogEventsAndTags | tag, |
int | args_count | ||
) |
Definition at line 824 of file profile-generator.cc.
References CpuProfilesCollection::GetName(), TokenEnumerator::kInheritsSecurityToken, and CpuProfileNode::kNoLineNumberInfo.
CodeEntry* NewCodeEntry | ( | int | security_token_id | ) |
List< CpuProfile * > * Profiles | ( | int | security_token_id | ) |
Definition at line 765 of file profile-generator.cc.
References List< T, P >::at(), TokenEnumerator::kNoSecurityToken, and v8::internal::NULL.
Referenced by CpuProfiler::GetProfile().
void RemoveProfile | ( | CpuProfile * | profile | ) |
Definition at line 708 of file profile-generator.cc.
References TemplateHashMapImpl< AllocationPolicy >::Next(), v8::internal::NULL, TemplateHashMapImpl< AllocationPolicy >::Remove(), List< T, P >::Remove(), and TemplateHashMapImpl< AllocationPolicy >::Start().
bool StartProfiling | ( | const char * | title, |
unsigned | uid | ||
) |
Definition at line 615 of file profile-generator.cc.
References ASSERT, CpuProfilesCollection::kMaxSimultaneousProfiles, Semaphore::Signal(), and Semaphore::Wait().
Referenced by CpuProfilesCollection::StartProfiling().
bool StartProfiling | ( | String * | title, |
unsigned | uid | ||
) |
Definition at line 635 of file profile-generator.cc.
References CpuProfilesCollection::GetName(), and CpuProfilesCollection::StartProfiling().
CpuProfile * StopProfiling | ( | int | security_token_id, |
const char * | title, | ||
double | actual_sampling_rate | ||
) |
Definition at line 640 of file profile-generator.cc.
References List< T, P >::Add(), ASSERT, CpuProfile::CalculateTotalTicks(), CpuProfilesCollection::GetProfile(), TokenEnumerator::kNoSecurityToken, TemplateHashMapImpl< AllocationPolicy >::Lookup(), v8::internal::NULL, CpuProfile::SetActualSamplingRate(), Semaphore::Signal(), v8::internal::StrLength(), and Semaphore::Wait().
|
static |
Definition at line 321 of file profile-generator.h.
Referenced by CpuProfilesCollection::StartProfiling().