| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index b80d1be8d2ebb46b1e660fad25c5b71d5793a78c..bf630cb3af0bd5fff26060eab931da6e9b0dbfd1 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -7567,6 +7567,18 @@ const CpuProfileNode* CpuProfile::GetSample(int index) const {
|
| }
|
|
|
|
|
| +int64_t CpuProfile::GetStartTime() const {
|
| + const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this);
|
| + return profile->start_time_us();
|
| +}
|
| +
|
| +
|
| +int64_t CpuProfile::GetEndTime() const {
|
| + const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this);
|
| + return profile->end_time_us();
|
| +}
|
| +
|
| +
|
| int CpuProfile::GetSamplesCount() const {
|
| return reinterpret_cast<const i::CpuProfile*>(this)->samples_count();
|
| }
|
|
|