OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "core/workers/WorkerInspectorProxy.h" | 5 #include "core/workers/WorkerInspectorProxy.h" |
6 | 6 |
7 #include "core/frame/FrameConsole.h" | 7 #include "core/frame/FrameConsole.h" |
8 #include "core/inspector/IdentifiersFactory.h" | 8 #include "core/inspector/IdentifiersFactory.h" |
9 #include "core/inspector/InspectorInstrumentation.h" | 9 #include "core/inspector/InspectorInstrumentation.h" |
10 #include "core/inspector/InspectorTraceEvents.h" | 10 #include "core/inspector/InspectorTraceEvents.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 m_workerThread->appendDebuggerTask( | 143 m_workerThread->appendDebuggerTask( |
144 crossThreadBind(dispatchOnInspectorBackendTask, message, | 144 crossThreadBind(dispatchOnInspectorBackendTask, message, |
145 crossThreadUnretained(m_workerThread))); | 145 crossThreadUnretained(m_workerThread))); |
146 } | 146 } |
147 | 147 |
148 void WorkerInspectorProxy::writeTimelineStartedEvent(const String& sessionId) { | 148 void WorkerInspectorProxy::writeTimelineStartedEvent(const String& sessionId) { |
149 if (!m_workerThread) | 149 if (!m_workerThread) |
150 return; | 150 return; |
151 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), | 151 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), |
152 "TracingSessionIdForWorker", TRACE_EVENT_SCOPE_THREAD, | 152 "TracingSessionIdForWorker", TRACE_EVENT_SCOPE_THREAD, |
153 "data", InspectorTracingSessionIdForWorkerEvent::data( | 153 "data", |
154 sessionId, inspectorId(), m_workerThread)); | 154 InspectorTracingSessionIdForWorkerEvent::data( |
| 155 sessionId, inspectorId(), m_workerThread)); |
155 } | 156 } |
156 | 157 |
157 DEFINE_TRACE(WorkerInspectorProxy) { | 158 DEFINE_TRACE(WorkerInspectorProxy) { |
158 visitor->trace(m_document); | 159 visitor->trace(m_document); |
159 } | 160 } |
160 | 161 |
161 } // namespace blink | 162 } // namespace blink |
OLD | NEW |