| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 9c0ac7be865bb24946e0fa86555efa2f993b4648..ebd2b814ffd2da4b977f2f20dc59ef3d335cd3ae 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -7310,13 +7310,13 @@ 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();
|
| + return (profile->start_time() - i::Time::UnixEpoch()).InMicroseconds();
|
| }
|
|
|
|
|
| int64_t CpuProfile::GetEndTime() const {
|
| const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this);
|
| - return profile->end_time_us();
|
| + return (profile->end_time() - i::Time::UnixEpoch()).InMicroseconds();
|
| }
|
|
|
|
|
|
|