|
V8 Project
|
#include <profile-generator.h>
Collaboration diagram for v8::internal::CpuProfilesCollection:Public Member Functions | |
| CpuProfilesCollection (Heap *heap) | |
| ~CpuProfilesCollection () | |
| bool | StartProfiling (const char *title, bool record_samples) |
| CpuProfile * | StopProfiling (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) |
| CodeEntry * | NewCodeEntry (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 (base::TimeTicks timestamp, const Vector< CodeEntry * > &path) |
Static Public Attributes | |
| static const int | kMaxSimultaneousProfiles = 100 |
Private Member Functions | |
| DISALLOW_COPY_AND_ASSIGN (CpuProfilesCollection) | |
Private Attributes | |
| StringsStorage | function_and_resource_names_ |
| List< CodeEntry * > | code_entries_ |
| List< CpuProfile * > | finished_profiles_ |
| List< CpuProfile * > | current_profiles_ |
| base::Semaphore | current_profiles_semaphore_ |
Definition at line 256 of file profile-generator.h.
|
explicit |
Definition at line 435 of file profile-generator.cc.
| v8::internal::CpuProfilesCollection::~CpuProfilesCollection | ( | ) |
Definition at line 451 of file profile-generator.cc.
References code_entries_, current_profiles_, v8::internal::DeleteCodeEntry(), v8::internal::DeleteCpuProfile(), and finished_profiles_.
Here is the call graph for this function:| void v8::internal::CpuProfilesCollection::AddPathToCurrentProfiles | ( | base::TimeTicks | timestamp, |
| const Vector< CodeEntry * > & | path | ||
| ) |
Definition at line 519 of file profile-generator.cc.
References current_profiles_, and current_profiles_semaphore_.
Referenced by v8::internal::ProfileGenerator::RecordTickSample().
Here is the caller graph for this function:
|
private |
|
inline |
Definition at line 273 of file profile-generator.h.
References function_and_resource_names_, v8::internal::StringsStorage::GetFunctionName(), and name.
Here is the call graph for this function:
|
inline |
Definition at line 270 of file profile-generator.h.
References function_and_resource_names_, v8::internal::StringsStorage::GetFunctionName(), and name.
Referenced by v8::internal::CpuProfiler::CodeCreateEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 267 of file profile-generator.h.
References function_and_resource_names_, and v8::internal::StringsStorage::GetName().
Here is the call graph for this function:
|
inline |
Definition at line 264 of file profile-generator.h.
References function_and_resource_names_, v8::internal::StringsStorage::GetName(), and name.
Referenced by v8::internal::CpuProfiler::CallbackEvent(), v8::internal::CpuProfiler::CodeCreateEvent(), v8::internal::CpuProfiler::GetterCallbackEvent(), v8::internal::CpuProfiler::RegExpCodeCreateEvent(), v8::internal::CpuProfiler::SetterCallbackEvent(), v8::internal::CpuProfiler::StartProfiling(), and v8::internal::CpuProfiler::StopProfiling().
Here is the call graph for this function:
Here is the caller graph for this function:| bool v8::internal::CpuProfilesCollection::IsLastProfile | ( | const char * | title | ) |
Definition at line 498 of file profile-generator.cc.
References current_profiles_, and v8::internal::StrLength().
Referenced by v8::internal::CpuProfiler::StopProcessorIfLastProfile().
Here is the call graph for this function:
Here is the caller graph for this function:| CodeEntry * v8::internal::CpuProfilesCollection::NewCodeEntry | ( | 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 |
||
| ) |
Definition at line 532 of file profile-generator.cc.
References code_entries_, and name.
Referenced by v8::internal::CpuProfiler::CallbackEvent(), v8::internal::CpuProfiler::CodeCreateEvent(), v8::internal::CpuProfiler::GetterCallbackEvent(), v8::internal::CpuProfiler::RegExpCodeCreateEvent(), and v8::internal::CpuProfiler::SetterCallbackEvent().
Here is the caller graph for this function:
|
inline |
Definition at line 263 of file profile-generator.h.
References finished_profiles_.
Referenced by v8::internal::CpuProfiler::DeleteProfile(), v8::internal::CpuProfiler::GetProfile(), and v8::internal::CpuProfiler::GetProfilesCount().
Here is the caller graph for this function:| void v8::internal::CpuProfilesCollection::RemoveProfile | ( | CpuProfile * | profile | ) |
Definition at line 507 of file profile-generator.cc.
References finished_profiles_, and UNREACHABLE.
Referenced by v8::internal::CpuProfiler::DeleteProfile().
Here is the caller graph for this function:| bool v8::internal::CpuProfilesCollection::StartProfiling | ( | const char * | title, |
| bool | record_samples | ||
| ) |
Definition at line 458 of file profile-generator.cc.
References current_profiles_, current_profiles_semaphore_, and kMaxSimultaneousProfiles.
Referenced by v8::internal::CpuProfiler::StartProfiling().
Here is the caller graph for this function:| CpuProfile * v8::internal::CpuProfilesCollection::StopProfiling | ( | const char * | title | ) |
Definition at line 479 of file profile-generator.cc.
References v8::internal::CpuProfile::CalculateTotalTicksAndSamplingRate(), current_profiles_, current_profiles_semaphore_, finished_profiles_, NULL, and v8::internal::StrLength().
Referenced by v8::internal::CpuProfiler::StopProfiling().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 296 of file profile-generator.h.
Referenced by NewCodeEntry(), and ~CpuProfilesCollection().
|
private |
Definition at line 300 of file profile-generator.h.
Referenced by AddPathToCurrentProfiles(), IsLastProfile(), StartProfiling(), StopProfiling(), and ~CpuProfilesCollection().
|
private |
Definition at line 301 of file profile-generator.h.
Referenced by AddPathToCurrentProfiles(), StartProfiling(), and StopProfiling().
|
private |
Definition at line 297 of file profile-generator.h.
Referenced by profiles(), RemoveProfile(), StopProfiling(), and ~CpuProfilesCollection().
|
private |
Definition at line 295 of file profile-generator.h.
Referenced by GetFunctionName(), and GetName().
|
static |
Definition at line 292 of file profile-generator.h.
Referenced by StartProfiling().