OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/inspector/v8-profiler-agent-impl.h" | 5 #include "src/inspector/v8-profiler-agent-impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "src/base/atomicops.h" | 9 #include "src/base/atomicops.h" |
10 #include "src/inspector/protocol/Protocol.h" | 10 #include "src/inspector/protocol/Protocol.h" |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 bool V8ProfilerAgentImpl::idleStarted() { | 302 bool V8ProfilerAgentImpl::idleStarted() { |
303 if (m_profiler) m_profiler->SetIdle(true); | 303 if (m_profiler) m_profiler->SetIdle(true); |
304 return m_profiler; | 304 return m_profiler; |
305 } | 305 } |
306 | 306 |
307 bool V8ProfilerAgentImpl::idleFinished() { | 307 bool V8ProfilerAgentImpl::idleFinished() { |
308 if (m_profiler) m_profiler->SetIdle(false); | 308 if (m_profiler) m_profiler->SetIdle(false); |
309 return m_profiler; | 309 return m_profiler; |
310 } | 310 } |
311 | 311 |
312 void V8ProfilerAgentImpl::collectSample() { | |
313 if (m_profiler) m_profiler->CollectSample(); | |
314 } | |
315 | |
316 } // namespace v8_inspector | 312 } // namespace v8_inspector |
OLD | NEW |