Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 638a25f317cfa779ab4690ed73db14426c20e800..4e0e178b489f707a6ead4df7cd148a3c2baf03f1 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7437,7 +7437,7 @@ void CpuProfile::Delete() { |
i::CpuProfiler* profiler = isolate->cpu_profiler(); |
ASSERT(profiler != NULL); |
profiler->DeleteProfile(reinterpret_cast<i::CpuProfile*>(this)); |
- if (profiler->GetProfilesCount() == 0 && !profiler->HasDetachedProfiles()) { |
+ if (profiler->GetProfilesCount() == 0) { |
// If this was the last profile, clean up all accessory data as well. |
profiler->DeleteAllProfiles(); |
} |
@@ -7484,27 +7484,9 @@ int CpuProfiler::GetProfileCount() { |
} |
-const CpuProfile* CpuProfiler::GetCpuProfile(int index, |
- Handle<Value> security_token) { |
- return reinterpret_cast<const CpuProfile*>( |
- reinterpret_cast<i::CpuProfiler*>(this)->GetProfile( |
- security_token.IsEmpty() ? NULL : *Utils::OpenHandle(*security_token), |
- index)); |
-} |
- |
- |
const CpuProfile* CpuProfiler::GetCpuProfile(int index) { |
return reinterpret_cast<const CpuProfile*>( |
- reinterpret_cast<i::CpuProfiler*>(this)->GetProfile(NULL, index)); |
-} |
- |
- |
-const CpuProfile* CpuProfiler::FindCpuProfile(unsigned uid, |
- Handle<Value> security_token) { |
- return reinterpret_cast<const CpuProfile*>( |
- reinterpret_cast<i::CpuProfiler*>(this)->FindProfile( |
- security_token.IsEmpty() ? NULL : *Utils::OpenHandle(*security_token), |
- uid)); |
+ reinterpret_cast<i::CpuProfiler*>(this)->GetProfile(index)); |
} |
@@ -7514,19 +7496,9 @@ void CpuProfiler::StartCpuProfiling(Handle<String> title, bool record_samples) { |
} |
-const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title, |
- Handle<Value> security_token) { |
- return reinterpret_cast<const CpuProfile*>( |
- reinterpret_cast<i::CpuProfiler*>(this)->StopProfiling( |
- security_token.IsEmpty() ? NULL : *Utils::OpenHandle(*security_token), |
- *Utils::OpenHandle(*title))); |
-} |
- |
- |
const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title) { |
return reinterpret_cast<const CpuProfile*>( |
reinterpret_cast<i::CpuProfiler*>(this)->StopProfiling( |
- NULL, |
*Utils::OpenHandle(*title))); |
} |