| 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/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
| 12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
| 13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
| 14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 17 #include "base/trace_event/memory_dump_manager.h" | 17 #include "base/trace_event/memory_dump_manager.h" |
| 18 #include "base/trace_event/trace_event_impl.h" | 18 #include "base/trace_event/trace_event_impl.h" |
| 19 #include "base/trace_event/tracing_agent.h" | 19 #include "base/trace_event/tracing_agent.h" |
| 20 #include "components/tracing/browser/trace_config_file.h" | 20 #include "components/tracing/common/trace_config_file.h" |
| 21 #include "content/browser/devtools/devtools_io_context.h" | 21 #include "content/browser/devtools/devtools_io_context.h" |
| 22 #include "content/browser/devtools/devtools_session.h" | 22 #include "content/browser/devtools/devtools_session.h" |
| 23 #include "content/browser/tracing/tracing_controller_impl.h" | 23 #include "content/browser/tracing/tracing_controller_impl.h" |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 namespace protocol { | 26 namespace protocol { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 const double kMinimumReportingInterval = 250.0; | 30 const double kMinimumReportingInterval = 250.0; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 359 |
| 360 std::string mode; | 360 std::string mode; |
| 361 if (tracing_dict->GetString(kRecordModeParam, &mode)) | 361 if (tracing_dict->GetString(kRecordModeParam, &mode)) |
| 362 tracing_dict->SetString(kRecordModeParam, ConvertFromCamelCase(mode, '-')); | 362 tracing_dict->SetString(kRecordModeParam, ConvertFromCamelCase(mode, '-')); |
| 363 | 363 |
| 364 return base::trace_event::TraceConfig(*tracing_dict); | 364 return base::trace_event::TraceConfig(*tracing_dict); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace tracing | 367 } // namespace tracing |
| 368 } // namespace protocol | 368 } // namespace protocol |
| OLD | NEW |