| Index: third_party/WebKit/public/platform/WebProcessMemoryDump.h
|
| diff --git a/third_party/WebKit/public/platform/WebProcessMemoryDump.h b/third_party/WebKit/public/platform/WebProcessMemoryDump.h
|
| index 39ec7ef74d0edec9c4ccecbed6b3e37e23673995..4f5301f68dfc3748f1192395f781e814528f1bd4 100644
|
| --- a/third_party/WebKit/public/platform/WebProcessMemoryDump.h
|
| +++ b/third_party/WebKit/public/platform/WebProcessMemoryDump.h
|
| @@ -9,9 +9,19 @@
|
| #include "WebMemoryAllocatorDump.h"
|
| #include "WebMemoryDumpProvider.h"
|
| #include "WebString.h"
|
| +#include "base/trace_event/heap_profiler_allocation_context.h"
|
|
|
| class SkTraceMemoryDump;
|
|
|
| +namespace base {
|
| +namespace trace_event {
|
| +
|
| +class ProcessMemoryDump;
|
| +class TraceEventMemoryOverhead;
|
| +
|
| +} // namespace trace_event
|
| +} // namespace base
|
| +
|
| namespace blink {
|
|
|
| // A container which holds all the dumps for the various allocators for a given
|
| @@ -103,6 +113,14 @@ public:
|
| BLINK_ASSERT_NOT_REACHED();
|
| return nullptr;
|
| }
|
| +
|
| + // Dumps heap memory usage in Parition Alloc.
|
| + // TODO(hajimehoshi): Refactor this so that we can use this for other
|
| + // allocators than Partition Alloc.
|
| + virtual void dumpPartitionAllocHeapUsage(const base::hash_map<base::trace_event::AllocationContext, size_t>& bytesByContext, base::trace_event::TraceEventMemoryOverhead& overhead)
|
| + {
|
| + BLINK_ASSERT_NOT_REACHED();
|
| + }
|
| };
|
|
|
| } // namespace blink
|
|
|