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