| 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/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 14 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 16 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 18 #include "components/tracing/process_metrics_memory_dump_provider.h" | 19 #include "components/tracing/process_metrics_memory_dump_provider.h" |
| 19 #include "content/browser/tracing/file_tracing_provider_impl.h" | 20 #include "content/browser/tracing/file_tracing_provider_impl.h" |
| 20 #include "content/browser/tracing/trace_message_filter.h" | 21 #include "content/browser/tracing/trace_message_filter.h" |
| 21 #include "content/browser/tracing/tracing_ui.h" | 22 #include "content/browser/tracing/tracing_ui.h" |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 const bool global_success = failed_memory_dump_count_ == 0; | 1003 const bool global_success = failed_memory_dump_count_ == 0; |
| 1003 if (!pending_memory_dump_callback_.is_null()) { | 1004 if (!pending_memory_dump_callback_.is_null()) { |
| 1004 pending_memory_dump_callback_.Run(pending_memory_dump_guid_, | 1005 pending_memory_dump_callback_.Run(pending_memory_dump_guid_, |
| 1005 global_success); | 1006 global_success); |
| 1006 pending_memory_dump_callback_.Reset(); | 1007 pending_memory_dump_callback_.Reset(); |
| 1007 } | 1008 } |
| 1008 pending_memory_dump_guid_ = 0; | 1009 pending_memory_dump_guid_ = 0; |
| 1009 } | 1010 } |
| 1010 | 1011 |
| 1011 } // namespace content | 1012 } // namespace content |
| OLD | NEW |