| 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/V8ProfilerAgentImpl.h" | 5 #include "src/inspector/v8-profiler-agent-impl.h" |
| 6 | 6 |
| 7 #include "src/base/atomicops.h" | 7 #include "src/base/atomicops.h" |
| 8 #include "src/inspector/StringUtil.h" | |
| 9 #include "src/inspector/V8Debugger.h" | |
| 10 #include "src/inspector/V8InspectorImpl.h" | |
| 11 #include "src/inspector/V8InspectorSessionImpl.h" | |
| 12 #include "src/inspector/V8StackTraceImpl.h" | |
| 13 #include "src/inspector/protocol/Protocol.h" | 8 #include "src/inspector/protocol/Protocol.h" |
| 9 #include "src/inspector/string-util.h" |
| 10 #include "src/inspector/v8-debugger.h" |
| 11 #include "src/inspector/v8-inspector-impl.h" |
| 12 #include "src/inspector/v8-inspector-session-impl.h" |
| 13 #include "src/inspector/v8-stack-trace-impl.h" |
| 14 | 14 |
| 15 #include "include/v8-profiler.h" | 15 #include "include/v8-profiler.h" |
| 16 | 16 |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 namespace v8_inspector { | 19 namespace v8_inspector { |
| 20 | 20 |
| 21 namespace ProfilerAgentState { | 21 namespace ProfilerAgentState { |
| 22 static const char samplingInterval[] = "samplingInterval"; | 22 static const char samplingInterval[] = "samplingInterval"; |
| 23 static const char userInitiatedProfiling[] = "userInitiatedProfiling"; | 23 static const char userInitiatedProfiling[] = "userInitiatedProfiling"; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 bool V8ProfilerAgentImpl::idleFinished() { | 312 bool V8ProfilerAgentImpl::idleFinished() { |
| 313 if (m_profiler) m_profiler->SetIdle(false); | 313 if (m_profiler) m_profiler->SetIdle(false); |
| 314 return m_profiler; | 314 return m_profiler; |
| 315 } | 315 } |
| 316 | 316 |
| 317 void V8ProfilerAgentImpl::collectSample() { | 317 void V8ProfilerAgentImpl::collectSample() { |
| 318 if (m_profiler) m_profiler->CollectSample(); | 318 if (m_profiler) m_profiler->CollectSample(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 } // namespace v8_inspector | 321 } // namespace v8_inspector |
| OLD | NEW |