| 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 "base/trace_event/memory_dump_manager.h" | 5 #include "base/trace_event/memory_dump_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/memory/ref_counted_memory.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 16 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
| 17 #include "base/test/test_io_thread.h" | 18 #include "base/test/test_io_thread.h" |
| 18 #include "base/test/trace_event_analyzer.h" | 19 #include "base/test/trace_event_analyzer.h" |
| 19 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
| 20 #include "base/threading/platform_thread.h" | 21 #include "base/threading/platform_thread.h" |
| 21 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(2); | 974 EXPECT_CALL(*delegate_, RequestGlobalMemoryDump(_, _)).Times(2); |
| 974 for (int i = 0; i < 2; ++i) { | 975 for (int i = 0; i < 2; ++i) { |
| 975 RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED, | 976 RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED, |
| 976 MemoryDumpLevelOfDetail::DETAILED); | 977 MemoryDumpLevelOfDetail::DETAILED); |
| 977 } | 978 } |
| 978 DisableTracing(); | 979 DisableTracing(); |
| 979 } | 980 } |
| 980 | 981 |
| 981 } // namespace trace_event | 982 } // namespace trace_event |
| 982 } // namespace base | 983 } // namespace base |
| OLD | NEW |