V8 Project
|
#include <profile-generator.h>
Public Member Functions | |
CpuProfile (const char *title, bool record_samples) | |
void | AddPath (base::TimeTicks timestamp, const Vector< CodeEntry * > &path) |
void | CalculateTotalTicksAndSamplingRate () |
const char * | title () const |
const ProfileTree * | top_down () const |
int | samples_count () const |
ProfileNode * | sample (int index) const |
base::TimeTicks | sample_timestamp (int index) const |
base::TimeTicks | start_time () const |
base::TimeTicks | end_time () const |
void | UpdateTicksScale () |
void | Print () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (CpuProfile) | |
Private Attributes | |
const char * | title_ |
bool | record_samples_ |
base::TimeTicks | start_time_ |
base::TimeTicks | end_time_ |
List< ProfileNode * > | samples_ |
List< base::TimeTicks > | timestamps_ |
ProfileTree | top_down_ |
Definition at line 173 of file profile-generator.h.
v8::internal::CpuProfile::CpuProfile | ( | const char * | title, |
bool | record_samples | ||
) |
Definition at line 322 of file profile-generator.cc.
void v8::internal::CpuProfile::AddPath | ( | base::TimeTicks | timestamp, |
const Vector< CodeEntry * > & | path | ||
) |
Definition at line 329 of file profile-generator.cc.
References v8::internal::List< T, AllocationPolicy >::Add(), v8::internal::ProfileTree::AddPathFromEnd(), record_samples_, samples_, timestamps_, and top_down_.
void v8::internal::CpuProfile::CalculateTotalTicksAndSamplingRate | ( | ) |
Definition at line 339 of file profile-generator.cc.
References end_time_.
Referenced by v8::internal::CpuProfilesCollection::StopProfiling().
|
private |
|
inline |
Definition at line 191 of file profile-generator.h.
References end_time_.
Referenced by v8::CpuProfile::GetEndTime().
void v8::internal::CpuProfile::Print | ( | ) |
Definition at line 344 of file profile-generator.cc.
References v8::internal::ProfileTree::Print(), v8::base::OS::Print(), and top_down_.
Referenced by v8::internal::CpuProfiler::StopProfiling().
|
inline |
Definition at line 185 of file profile-generator.h.
References samples_.
Referenced by v8::CpuProfile::GetSample().
|
inline |
Definition at line 186 of file profile-generator.h.
References v8::internal::List< T, AllocationPolicy >::at(), and timestamps_.
Referenced by v8::CpuProfile::GetSampleTimestamp().
|
inline |
|
inline |
Definition at line 190 of file profile-generator.h.
References start_time_.
Referenced by v8::CpuProfile::GetStartTime().
|
inline |
Definition at line 181 of file profile-generator.h.
References title_.
Referenced by v8::CpuProfile::GetTitle().
|
inline |
Definition at line 182 of file profile-generator.h.
References top_down_.
Referenced by v8::CpuProfile::GetTopDownRoot().
void v8::internal::CpuProfile::UpdateTicksScale | ( | ) |
|
private |
Definition at line 201 of file profile-generator.h.
Referenced by CalculateTotalTicksAndSamplingRate(), and end_time().
|
private |
Definition at line 199 of file profile-generator.h.
Referenced by AddPath().
|
private |
Definition at line 202 of file profile-generator.h.
Referenced by AddPath(), sample(), and samples_count().
|
private |
Definition at line 200 of file profile-generator.h.
Referenced by start_time().
|
private |
Definition at line 203 of file profile-generator.h.
Referenced by AddPath(), and sample_timestamp().
|
private |
Definition at line 198 of file profile-generator.h.
Referenced by title().
|
private |
Definition at line 204 of file profile-generator.h.
Referenced by AddPath(), Print(), and top_down().