OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
12 #include "base/trace_event/memory_dump_manager.h" | 13 #include "base/trace_event/memory_dump_manager.h" |
13 #include "base/trace_event/memory_dump_provider.h" | 14 #include "base/trace_event/memory_dump_provider.h" |
14 #include "base/trace_event/memory_dump_request_args.h" | 15 #include "base/trace_event/memory_dump_request_args.h" |
15 #include "base/trace_event/trace_config_memory_test_util.h" | 16 #include "base/trace_event/trace_config_memory_test_util.h" |
16 #include "base/trace_event/trace_log.h" | 17 #include "base/trace_event/trace_log.h" |
17 #include "content/public/browser/tracing_controller.h" | 18 #include "content/public/browser/tracing_controller.h" |
18 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
19 #include "content/public/test/browser_test_utils.h" | 20 #include "content/public/test/browser_test_utils.h" |
20 #include "content/public/test/content_browser_test.h" | 21 #include "content/public/test/content_browser_test.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 EXPECT_CALL(*this, OnMemoryDumpDone(_, true /* success */)); | 319 EXPECT_CALL(*this, OnMemoryDumpDone(_, true /* success */)); |
319 | 320 |
320 EnableMemoryTracing(); | 321 EnableMemoryTracing(); |
321 RequestGlobalDumpAndWait(false /* from_renderer_thread */, | 322 RequestGlobalDumpAndWait(false /* from_renderer_thread */, |
322 MemoryDumpType::EXPLICITLY_TRIGGERED, | 323 MemoryDumpType::EXPLICITLY_TRIGGERED, |
323 MemoryDumpLevelOfDetail::DETAILED); | 324 MemoryDumpLevelOfDetail::DETAILED); |
324 DisableTracing(); | 325 DisableTracing(); |
325 } | 326 } |
326 | 327 |
327 } // namespace content | 328 } // namespace content |
OLD | NEW |