Chromium Code Reviews| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 } | 118 } |
| 119 | 119 |
| 120 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump( const std::string& name, base::DiscardableMemory* discardable) | 120 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump( const std::string& name, base::DiscardableMemory* discardable) |
| 121 { | 121 { |
| 122 BLINK_ASSERT_NOT_REACHED(); | 122 BLINK_ASSERT_NOT_REACHED(); |
| 123 return nullptr; | 123 return nullptr; |
| 124 } | 124 } |
| 125 | 125 |
| 126 // Dumps heap memory usage. |allocatorName| is used as an absolute name for | 126 // Dumps heap memory usage. |allocatorName| is used as an absolute name for |
| 127 // base::trace_event::ProcessMemoryDump::AddHeapDump. | 127 // base::trace_event::ProcessMemoryDump::AddHeapDump. |
| 128 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio nContext, size_t>& bytesByContext, base::trace_event::TraceEventMemoryOverhead& overhead, const char* allocatorName) | 128 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio nContext, base::trace_event::AllocationsSizeAndCount>& metricsByContext, base::t race_event::TraceEventMemoryOverhead& overhead, const char* allocatorName) |
|
Dmitry Skiba
2016/04/14 19:07:30
OMG long line, how did it pass presubmit check?
Primiano Tucci (use gerrit)
2016/04/14 19:37:22
Welcome to blink, where 80 col limit does not appl
| |
| 129 { | 129 { |
| 130 BLINK_ASSERT_NOT_REACHED(); | 130 BLINK_ASSERT_NOT_REACHED(); |
| 131 } | 131 } |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif // WebProcessMemoryDump_h | 136 #endif // WebProcessMemoryDump_h |
| OLD | NEW |