Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: src/inspector/v8-profiler-agent-impl.cc

Issue 2896303004: [inspector] Move SetIdle from CPUProfiler to debug-interface (Closed)
Patch Set: rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/v8-profiler-agent-impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-profiler-agent-impl.cc
diff --git a/src/inspector/v8-profiler-agent-impl.cc b/src/inspector/v8-profiler-agent-impl.cc
index 6e7bcfcb6e4d754565919d1a399388e625d6fee6..e0366d27382039d58832192823d6fb07be85616a 100644
--- a/src/inspector/v8-profiler-agent-impl.cc
+++ b/src/inspector/v8-profiler-agent-impl.cc
@@ -372,7 +372,6 @@ void V8ProfilerAgentImpl::startProfiling(const String16& title) {
if (!m_startedProfilesCount) {
DCHECK(!m_profiler);
m_profiler = v8::CpuProfiler::New(m_isolate);
- m_profiler->SetIdle(m_idle);
int interval =
m_state->integerProperty(ProfilerAgentState::samplingInterval, 0);
if (interval) m_profiler->SetSamplingInterval(interval);
@@ -399,16 +398,4 @@ std::unique_ptr<protocol::Profiler::Profile> V8ProfilerAgentImpl::stopProfiling(
return result;
}
-bool V8ProfilerAgentImpl::idleStarted() {
- m_idle = true;
- if (m_profiler) m_profiler->SetIdle(m_idle);
- return m_profiler;
-}
-
-bool V8ProfilerAgentImpl::idleFinished() {
- m_idle = false;
- if (m_profiler) m_profiler->SetIdle(m_idle);
- return m_profiler;
-}
-
} // namespace v8_inspector
« no previous file with comments | « src/inspector/v8-profiler-agent-impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698