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

Unified Diff: base/trace_event/process_memory_dump.h

Issue 1151603004: [tracing] Add support to pre-load and merge ProcessMemoryDump(s). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 5 years, 7 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 889356d65aa57d8599a715ab4cdb5ad062d2aa82..9ffd89b61dfdc5ee7e03e9f1c484dfabaa2a9b36 100644
--- a/base/trace_event/process_memory_dump.h
+++ b/base/trace_event/process_memory_dump.h
@@ -41,6 +41,15 @@ class BASE_EXPORT ProcessMemoryDump {
// Called at trace generation time to populate the TracedValue.
void AsValueInto(TracedValue* value) const;
+ // Merges all the MemoryAllocatorDump(s) contained in |other| inside this
petrcermak 2015/05/21 08:17:38 I don't think you need "the" in front of "MemoryAl
Primiano Tucci (use gerrit) 2015/05/21 08:33:46 Done.
+ // ProcessMemoryDump, moving their ownership to this instance. |other| will
petrcermak 2015/05/21 08:17:38 "transfer ownership" seems to be used much more of
Primiano Tucci (use gerrit) 2015/05/21 08:33:46 Done.
+ // be an empty ProcessMemoryDump after this method returns.
+ // This is to allow dump providers to create and populate out-of-band
petrcermak 2015/05/21 08:17:38 nit: I know what you mean, but "out-of-band" is no
Primiano Tucci (use gerrit) 2015/05/21 08:33:46 reworded
+ // instances of ProcessMemoryDump and later move them into the
petrcermak 2015/05/21 08:17:38 nit: The *contents* of the PMD instances are moved
Primiano Tucci (use gerrit) 2015/05/21 08:33:46 reworded
+ // ProcessMemoryDump passed as argument of the
+ // MemoryDumpProvider.OnMemoryDump(ProcessMemoryDump*) callback.
+ void TakeAllDumpsFrom(ProcessMemoryDump* other);
+
ProcessMemoryTotals* process_totals() { return &process_totals_; }
bool has_process_totals() const { return has_process_totals_; }
void set_has_process_totals() { has_process_totals_ = true; }

Powered by Google App Engine
This is Rietveld 408576698