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 "content/browser/devtools/protocol/tracing_handler.h" | 5 #include "content/browser/devtools/protocol/tracing_handler.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/debug/trace_event_impl.h" | |
11 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
12 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
13 #include "base/time/time.h" | 12 #include "base/time/time.h" |
14 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 14 #include "base/trace_event/trace_event_impl.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 namespace devtools { | 17 namespace devtools { |
18 namespace tracing { | 18 namespace tracing { |
19 | 19 |
20 typedef DevToolsProtocolClient::Response Response; | 20 typedef DevToolsProtocolClient::Response Response; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kRecordUntilFull[] = "record-until-full"; | 24 const char kRecordUntilFull[] = "record-until-full"; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 void TracingHandler::DisableRecording(bool abort) { | 202 void TracingHandler::DisableRecording(bool abort) { |
203 is_recording_ = false; | 203 is_recording_ = false; |
204 buffer_usage_poll_timer_.reset(); | 204 buffer_usage_poll_timer_.reset(); |
205 TracingController::GetInstance()->DisableRecording( | 205 TracingController::GetInstance()->DisableRecording( |
206 abort ? nullptr : new DevToolsTraceSinkProxy(weak_factory_.GetWeakPtr())); | 206 abort ? nullptr : new DevToolsTraceSinkProxy(weak_factory_.GetWeakPtr())); |
207 } | 207 } |
208 | 208 |
209 } // namespace tracing | 209 } // namespace tracing |
210 } // namespace devtools | 210 } // namespace devtools |
211 } // namespace content | 211 } // namespace content |
OLD | NEW |