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

Unified Diff: base/trace_event/process_memory_totals.cc

Issue 2838803003: Add a field platform_private_footprint_ to ProcessMemoryTotals. (Closed)
Patch Set: Comments from mark. Created 3 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
« no previous file with comments | « base/trace_event/process_memory_totals.h ('k') | chrome/browser/memory_details_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/process_memory_totals.cc
diff --git a/base/trace_event/process_memory_totals.cc b/base/trace_event/process_memory_totals.cc
index de27ab3d9d441a939f87ffa898e46d1bf8520a90..d3cfad9067a2af266f94ecfb162a262d0999636b 100644
--- a/base/trace_event/process_memory_totals.cc
+++ b/base/trace_event/process_memory_totals.cc
@@ -14,8 +14,7 @@ namespace trace_event {
ProcessMemoryTotals::ProcessMemoryTotals()
: resident_set_bytes_(0),
peak_resident_set_bytes_(0),
- is_peak_rss_resetable_(false) {
-}
+ is_peak_rss_resetable_(false) {}
ProcessMemoryTotals::~ProcessMemoryTotals() {}
@@ -35,6 +34,7 @@ void ProcessMemoryTotals::AsValueInto(TracedValue* value) const {
void ProcessMemoryTotals::Clear() {
resident_set_bytes_ = 0;
+ platform_private_footprint_ = PlatformPrivateFootprint();
}
void ProcessMemoryTotals::SetExtraFieldInBytes(const char* name,
« no previous file with comments | « base/trace_event/process_memory_totals.h ('k') | chrome/browser/memory_details_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698