| 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" | 8 #include "WebCommon.h" |
| 9 #include "WebMemoryAllocatorDump.h" | 9 #include "WebMemoryAllocatorDump.h" |
| 10 #include "WebMemoryDumpProvider.h" | 10 #include "WebMemoryDumpProvider.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // by WebProcessMemoryDump and cannot outlive the WebProcessMemoryDump | 83 // by WebProcessMemoryDump and cannot outlive the WebProcessMemoryDump |
| 84 // object owning them. |dumpNamePrefix| is prefix appended to each dump | 84 // object owning them. |dumpNamePrefix| is prefix appended to each dump |
| 85 // created by the SkTraceMemoryDump implementation, if the dump should be | 85 // created by the SkTraceMemoryDump implementation, if the dump should be |
| 86 // placed under different namespace and not "skia". | 86 // placed under different namespace and not "skia". |
| 87 virtual SkTraceMemoryDump* createDumpAdapterForSkia(const WebString& dumpNam
ePrefix) = 0; | 87 virtual SkTraceMemoryDump* createDumpAdapterForSkia(const WebString& dumpNam
ePrefix) = 0; |
| 88 | 88 |
| 89 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump(
const std::string& name, base::DiscardableMemory*) = 0; | 89 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump(
const std::string& name, base::DiscardableMemory*) = 0; |
| 90 | 90 |
| 91 // Dumps heap memory usage. |allocatorName| is used as an absolute name for | 91 // Dumps heap memory usage. |allocatorName| is used as an absolute name for |
| 92 // base::trace_event::ProcessMemoryDump::AddHeapDump. | 92 // base::trace_event::ProcessMemoryDump::AddHeapDump. |
| 93 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio
nContext, size_t>& bytesByContext, base::trace_event::TraceEventMemoryOverhead&,
const char* allocatorName) = 0; | 93 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; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| 97 | 97 |
| 98 #endif // WebProcessMemoryDump_h | 98 #endif // WebProcessMemoryDump_h |
| OLD | NEW |