Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index fe43c4d6269a66fbb0db610072edb2ccdc800710..8269fd9fd7057765a92bb89a0e9627425b460aba 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6956,19 +6956,29 @@ void CpuProfiler::SetSamplingInterval(int us) { |
} |
-void CpuProfiler::StartCpuProfiling(Handle<String> title, bool record_samples) { |
+void CpuProfiler::StartProfiling(Handle<String> title, bool record_samples) { |
reinterpret_cast<i::CpuProfiler*>(this)->StartProfiling( |
*Utils::OpenHandle(*title), record_samples); |
} |
-const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title) { |
- return reinterpret_cast<const CpuProfile*>( |
+void CpuProfiler::StartCpuProfiling(Handle<String> title, bool record_samples) { |
+ StartProfiling(title, record_samples); |
+} |
+ |
+ |
+CpuProfile* CpuProfiler::StopProfiling(Handle<String> title) { |
+ return reinterpret_cast<CpuProfile*>( |
reinterpret_cast<i::CpuProfiler*>(this)->StopProfiling( |
*Utils::OpenHandle(*title))); |
} |
+const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title) { |
+ return StopProfiling(title); |
+} |
+ |
+ |
void CpuProfiler::SetIdle(bool is_idle) { |
i::Isolate* isolate = reinterpret_cast<i::CpuProfiler*>(this)->isolate(); |
i::StateTag state = isolate->current_vm_state(); |