Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index b2ded30a59eb5758b235d52dc3708ff9c7e8fc22..a5ef0543b5579cf87a5cba52f37bbe82c161bc16 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7243,6 +7243,12 @@ const CpuProfile* CpuProfiler::GetCpuProfile(int index, |
} |
+const CpuProfile* CpuProfiler::GetCpuProfile(int index) { |
+ return reinterpret_cast<const CpuProfile*>( |
+ reinterpret_cast<i::CpuProfiler*>(this)->GetProfile(NULL, index)); |
+} |
+ |
+ |
const CpuProfile* CpuProfiler::FindProfile(unsigned uid, |
Handle<Value> security_token) { |
i::Isolate* isolate = i::Isolate::Current(); |
@@ -7302,6 +7308,14 @@ const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title, |
} |
+const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title) { |
+ return reinterpret_cast<const CpuProfile*>( |
+ reinterpret_cast<i::CpuProfiler*>(this)->StopProfiling( |
+ NULL, |
+ *Utils::OpenHandle(*title))); |
+} |
+ |
+ |
void CpuProfiler::DeleteAllProfiles() { |
i::Isolate* isolate = i::Isolate::Current(); |
IsDeadCheck(isolate, "v8::CpuProfiler::DeleteAllProfiles"); |