OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "content/browser/tracing/tracing_controller_impl.h" | 4 #include "content/browser/tracing/tracing_controller_impl.h" |
5 | 5 |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/cpu.h" | 7 #include "base/cpu.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/json/string_escape.h" | 10 #include "base/json/string_escape.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 15 #include "base/threading/sequenced_worker_pool.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
19 #include "components/tracing/common/process_metrics_memory_dump_provider.h" | 20 #include "components/tracing/common/process_metrics_memory_dump_provider.h" |
20 #include "content/browser/tracing/file_tracing_provider_impl.h" | 21 #include "content/browser/tracing/file_tracing_provider_impl.h" |
21 #include "content/browser/tracing/trace_message_filter.h" | 22 #include "content/browser/tracing/trace_message_filter.h" |
22 #include "content/browser/tracing/tracing_ui.h" | 23 #include "content/browser/tracing/tracing_ui.h" |
23 #include "content/common/child_process_messages.h" | 24 #include "content/common/child_process_messages.h" |
24 #include "content/public/browser/browser_message_filter.h" | 25 #include "content/public/browser/browser_message_filter.h" |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 // Schedule the next queued dump (if applicable). | 1061 // Schedule the next queued dump (if applicable). |
1061 if (!queued_memory_dump_requests_.empty()) { | 1062 if (!queued_memory_dump_requests_.empty()) { |
1062 BrowserThread::PostTask( | 1063 BrowserThread::PostTask( |
1063 BrowserThread::UI, FROM_HERE, | 1064 BrowserThread::UI, FROM_HERE, |
1064 base::Bind(&TracingControllerImpl::PerformNextQueuedGlobalMemoryDump, | 1065 base::Bind(&TracingControllerImpl::PerformNextQueuedGlobalMemoryDump, |
1065 base::Unretained(this))); | 1066 base::Unretained(this))); |
1066 } | 1067 } |
1067 } | 1068 } |
1068 | 1069 |
1069 } // namespace content | 1070 } // namespace content |
OLD | NEW |