Index: src/inspector/V8ProfilerAgentImpl.cpp |
diff --git a/src/inspector/V8ProfilerAgentImpl.cpp b/src/inspector/V8ProfilerAgentImpl.cpp |
index 11a18a0cbed467bfe83463891d54482705a535f3..dcf4418c65b3e0224318815fd5fdde54830c8d73 100644 |
--- a/src/inspector/V8ProfilerAgentImpl.cpp |
+++ b/src/inspector/V8ProfilerAgentImpl.cpp |
@@ -304,4 +304,18 @@ bool V8ProfilerAgentImpl::isRecording() const { |
return m_recordingCPUProfile || !m_startedProfiles.empty(); |
} |
+bool V8ProfilerAgentImpl::idleStarted() { |
+ if (m_profiler) m_profiler->SetIdle(true); |
+ return m_profiler; |
+} |
+ |
+bool V8ProfilerAgentImpl::idleFinished() { |
+ if (m_profiler) m_profiler->SetIdle(false); |
+ return m_profiler; |
+} |
+ |
+void V8ProfilerAgentImpl::collectSample() { |
+ if (m_profiler) m_profiler->CollectSample(); |
+} |
+ |
} // namespace v8_inspector |