Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: base/trace_event/process_memory_dump.h

Issue 1910253003: PartitionAllocMemoryDumpProvider can directly inherit from MemoryDumpProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/trace_event/process_memory_dump.h
diff --git a/base/trace_event/process_memory_dump.h b/base/trace_event/process_memory_dump.h
index 5ac14fea939a53be452481cca2ab90ea50ac79cb..7f99c9823ee73841c9ebae9f99348bd4b5965e86 100644
--- a/base/trace_event/process_memory_dump.h
+++ b/base/trace_event/process_memory_dump.h
@@ -122,6 +122,13 @@ class BASE_EXPORT ProcessMemoryDump {
void AddHeapDump(const std::string& absolute_name,
Primiano Tucci (use gerrit) 2016/04/22 13:05:57 at this point we can remove this, right?
bashi 2016/04/24 23:33:12 BlinkGCMemoryDumpProvider uses it indirectly. Adde
std::unique_ptr<TracedValue> heap_dump);
+ // Dumps heap usage.
+ void DumpHeapUsage(const base::hash_map<base::trace_event::AllocationContext,
+ base::trace_event::AllocationMetrics>&
+ metrics_by_context,
+ base::trace_event::TraceEventMemoryOverhead& overhead,
+ const char* allocator_name);
+
// Adds an ownership relationship between two MemoryAllocatorDump(s) with the
// semantics: |source| owns |target|, and has the effect of attributing
// the memory usage of |target| to |source|. |importance| is optional and

Powered by Google App Engine
This is Rietveld 408576698