|
V8 Project
|
CpuProfile contains a CPU profile in a form of top-down call tree (from main() down to functions that do all the work). More...
#include <v8-profiler.h>
Collaboration diagram for v8::CpuProfile:Public Member Functions | |
| Handle< String > | GetTitle () const |
| Returns CPU profile title. More... | |
| const CpuProfileNode * | GetTopDownRoot () const |
| Returns the root node of the top down call tree. More... | |
| int | GetSamplesCount () const |
| Returns number of samples recorded. More... | |
| const CpuProfileNode * | GetSample (int index) const |
| Returns profile node corresponding to the top frame the sample at the given index. More... | |
| int64_t | GetSampleTimestamp (int index) const |
| Returns the timestamp of the sample. More... | |
| int64_t | GetStartTime () const |
| Returns time when the profile recording was started (in microseconds) since some unspecified starting point. More... | |
| int64_t | GetEndTime () const |
| Returns time when the profile recording was stopped (in microseconds) since some unspecified starting point. More... | |
| void | Delete () |
| Deletes the profile and removes it from CpuProfiler's list. More... | |
CpuProfile contains a CPU profile in a form of top-down call tree (from main() down to functions that do all the work).
Definition at line 77 of file v8-profiler.h.
| void v8::CpuProfile::Delete | ( | ) |
Deletes the profile and removes it from CpuProfiler's list.
All pointers to nodes previously returned become invalid.
Definition at line 7118 of file api.cc.
References v8::internal::Isolate::cpu_profiler(), DCHECK, NULL, and profiler().
Here is the call graph for this function:| int64_t v8::CpuProfile::GetEndTime | ( | ) | const |
Returns time when the profile recording was stopped (in microseconds) since some unspecified starting point.
The point is equal to the starting point used by GetStartTime.
Definition at line 7159 of file api.cc.
References v8::internal::CpuProfile::end_time().
Here is the call graph for this function:| const CpuProfileNode * v8::CpuProfile::GetSample | ( | int | index | ) | const |
Returns profile node corresponding to the top frame the sample at the given index.
Definition at line 7140 of file api.cc.
References v8::internal::CpuProfile::sample().
Here is the call graph for this function:| int v8::CpuProfile::GetSamplesCount | ( | ) | const |
Returns number of samples recorded.
The samples are not recorded unless |record_samples| parameter of CpuProfiler::StartCpuProfiling is true.
| int64_t v8::CpuProfile::GetSampleTimestamp | ( | int | index | ) | const |
Returns the timestamp of the sample.
The timestamp is the number of microseconds since some unspecified starting point. The point is equal to the starting point used by GetStartTime.
Definition at line 7146 of file api.cc.
References v8::internal::CpuProfile::sample_timestamp().
Here is the call graph for this function:| int64_t v8::CpuProfile::GetStartTime | ( | ) | const |
Returns time when the profile recording was started (in microseconds) since some unspecified starting point.
Definition at line 7153 of file api.cc.
References v8::internal::CpuProfile::start_time().
Here is the call graph for this function:Returns CPU profile title.
Definition at line 7126 of file api.cc.
References v8::internal::Isolate::factory(), and v8::internal::CpuProfile::title().
Here is the call graph for this function:| const CpuProfileNode * v8::CpuProfile::GetTopDownRoot | ( | ) | const |
Returns the root node of the top down call tree.
Definition at line 7134 of file api.cc.
References v8::internal::ProfileTree::root(), and v8::internal::CpuProfile::top_down().
Here is the call graph for this function: