v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <profile-generator.h>
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 (const Vector< CodeEntry * > &path) |
Static Public Attributes | |
static const int | kMaxSimultaneousProfiles = 100 |
Definition at line 277 of file profile-generator.h.
|
explicit |
Definition at line 465 of file profile-generator.cc.
Definition at line 481 of file profile-generator.cc.
Definition at line 548 of file profile-generator.cc.
Referenced by ProfileGenerator::RecordTickSample().
|
inline |
Definition at line 291 of file profile-generator.h.
References StringsStorage::GetFunctionName().
Referenced by CpuProfiler::CodeCreateEvent().
|
inline |
Definition at line 294 of file profile-generator.h.
References StringsStorage::GetFunctionName().
|
inline |
Definition at line 285 of file profile-generator.h.
References StringsStorage::GetName().
Referenced by CpuProfiler::CallbackEvent(), CpuProfiler::CodeCreateEvent(), CpuProfiler::GetterCallbackEvent(), CpuProfiler::RegExpCodeCreateEvent(), CpuProfiler::SetterCallbackEvent(), CpuProfiler::StartProfiling(), and CpuProfiler::StopProfiling().
|
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().
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 |
||
) |
Definition at line 561 of file profile-generator.cc.
Referenced by CpuProfiler::CallbackEvent(), CpuProfiler::CodeCreateEvent(), CpuProfiler::GetterCallbackEvent(), CpuProfiler::RegExpCodeCreateEvent(), and CpuProfiler::SetterCallbackEvent().
|
inline |
Definition at line 284 of file profile-generator.h.
Referenced by CpuProfiler::DeleteProfile(), CpuProfiler::GetProfile(), and CpuProfiler::GetProfilesCount().
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 | ||
) |
Definition at line 488 of file profile-generator.cc.
References CpuProfilesCollection::kMaxSimultaneousProfiles.
Referenced by CpuProfiler::StartProfiling().
CpuProfile * StopProfiling | ( | const char * | title | ) |
Definition at line 508 of file profile-generator.cc.
References CpuProfile::CalculateTotalTicksAndSamplingRate(), v8::internal::NULL, and v8::internal::StrLength().
Referenced by CpuProfiler::StopProfiling().
|
static |
Definition at line 312 of file profile-generator.h.
Referenced by CpuProfilesCollection::StartProfiling().