| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 "platform/v8_inspector/V8ProfilerAgentImpl.h" | 5 #include "platform/v8_inspector/V8ProfilerAgentImpl.h" |
| 6 | 6 |
| 7 #include "platform/v8_inspector/Atomics.h" | 7 #include "platform/v8_inspector/Atomics.h" |
| 8 #include "platform/v8_inspector/V8DebuggerImpl.h" | 8 #include "platform/v8_inspector/V8DebuggerImpl.h" |
| 9 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 9 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
| 10 #include "platform/v8_inspector/V8StackTraceImpl.h" | 10 #include "platform/v8_inspector/V8StackTraceImpl.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 class V8ProfilerAgentImpl::ProfileDescriptor { | 115 class V8ProfilerAgentImpl::ProfileDescriptor { |
| 116 public: | 116 public: |
| 117 ProfileDescriptor(const String16& id, const String16& title) | 117 ProfileDescriptor(const String16& id, const String16& title) |
| 118 : m_id(id) | 118 : m_id(id) |
| 119 , m_title(title) { } | 119 , m_title(title) { } |
| 120 String16 m_id; | 120 String16 m_id; |
| 121 String16 m_title; | 121 String16 m_title; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 V8ProfilerAgentImpl::V8ProfilerAgentImpl(V8InspectorSessionImpl* session, protoc
ol::Frontend::Profiler* frontend, protocol::DictionaryValue* state) | 124 V8ProfilerAgentImpl::V8ProfilerAgentImpl(V8InspectorSessionImpl* session, protoc
ol::Profiler::Frontend* frontend, protocol::DictionaryValue* state) |
| 125 : m_session(session) | 125 : m_session(session) |
| 126 , m_isolate(m_session->debugger()->isolate()) | 126 , m_isolate(m_session->debugger()->isolate()) |
| 127 , m_state(state) | 127 , m_state(state) |
| 128 , m_frontend(frontend) | 128 , m_frontend(frontend) |
| 129 , m_enabled(false) | 129 , m_enabled(false) |
| 130 , m_recordingCPUProfile(false) | 130 , m_recordingCPUProfile(false) |
| 131 { | 131 { |
| 132 } | 132 } |
| 133 | 133 |
| 134 V8ProfilerAgentImpl::~V8ProfilerAgentImpl() | 134 V8ProfilerAgentImpl::~V8ProfilerAgentImpl() |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 profile->Delete(); | 285 profile->Delete(); |
| 286 return result; | 286 return result; |
| 287 } | 287 } |
| 288 | 288 |
| 289 bool V8ProfilerAgentImpl::isRecording() const | 289 bool V8ProfilerAgentImpl::isRecording() const |
| 290 { | 290 { |
| 291 return m_recordingCPUProfile || !m_startedProfiles.isEmpty(); | 291 return m_recordingCPUProfile || !m_startedProfiles.isEmpty(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace blink | 294 } // namespace blink |
| OLD | NEW |