| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
| 13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 14 #include "base/path_service.h" | |
| 15 #include "base/pending_task.h" | 14 #include "base/pending_task.h" |
| 16 #include "base/power_monitor/power_monitor.h" | 15 #include "base/power_monitor/power_monitor.h" |
| 17 #include "base/power_monitor/power_monitor_device_source.h" | 16 #include "base/power_monitor/power_monitor_device_source.h" |
| 18 #include "base/process/process_metrics.h" | 17 #include "base/process/process_metrics.h" |
| 19 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 20 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 21 #include "base/system_monitor/system_monitor.h" | 20 #include "base/system_monitor/system_monitor.h" |
| 22 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
| 23 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
| 24 #include "base/timer/hi_res_timer_manager.h" | 23 #include "base/timer/hi_res_timer_manager.h" |
| (...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1206 | 1205 |
| 1207 void BrowserMainLoop::EndStartupTracing() { | 1206 void BrowserMainLoop::EndStartupTracing() { |
| 1208 is_tracing_startup_ = false; | 1207 is_tracing_startup_ = false; |
| 1209 TracingController::GetInstance()->DisableRecording( | 1208 TracingController::GetInstance()->DisableRecording( |
| 1210 TracingController::CreateFileSink( | 1209 TracingController::CreateFileSink( |
| 1211 startup_trace_file_, | 1210 startup_trace_file_, |
| 1212 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1211 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
| 1213 } | 1212 } |
| 1214 | 1213 |
| 1215 } // namespace content | 1214 } // namespace content |
| OLD | NEW |