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 #ifndef WebProcessMemoryDump_h | 5 #ifndef WebProcessMemoryDump_h |
6 #define WebProcessMemoryDump_h | 6 #define WebProcessMemoryDump_h |
7 | 7 |
8 #include "WebCommon.h" | |
9 #include "WebMemoryAllocatorDump.h" | |
10 #include "WebString.h" | |
11 #include "base/trace_event/heap_profiler_allocation_context.h" | 8 #include "base/trace_event/heap_profiler_allocation_context.h" |
| 9 #include "platform/WebMemoryAllocatorDump.h" |
| 10 #include "public/platform/WebCommon.h" |
| 11 #include "public/platform/WebString.h" |
12 | 12 |
13 class SkTraceMemoryDump; | 13 class SkTraceMemoryDump; |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 | 16 |
17 class DiscardableMemory; | 17 class DiscardableMemory; |
18 | 18 |
19 namespace trace_event { | 19 namespace trace_event { |
20 | 20 |
21 class ProcessMemoryDump; | 21 class ProcessMemoryDump; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump(
const std::string& name, base::DiscardableMemory*) = 0; | 97 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump(
const std::string& name, base::DiscardableMemory*) = 0; |
98 | 98 |
99 // Dumps heap memory usage. |allocatorName| is used as an absolute name for | 99 // Dumps heap memory usage. |allocatorName| is used as an absolute name for |
100 // base::trace_event::ProcessMemoryDump::AddHeapDump. | 100 // base::trace_event::ProcessMemoryDump::AddHeapDump. |
101 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio
nContext, base::trace_event::AllocationMetrics>& metricsByContext, base::trace_e
vent::TraceEventMemoryOverhead&, const char* allocatorName) = 0; | 101 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio
nContext, base::trace_event::AllocationMetrics>& metricsByContext, base::trace_e
vent::TraceEventMemoryOverhead&, const char* allocatorName) = 0; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
105 | 105 |
106 #endif // WebProcessMemoryDump_h | 106 #endif // WebProcessMemoryDump_h |
OLD | NEW |