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

Unified Diff: components/tracing/common/process_metrics_memory_dump_provider.cc

Issue 2839733004: Fill in PlatformPrivateFootprint on Linux (Closed)
Patch Set: update for parent patch changes 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/tracing/common/process_metrics_memory_dump_provider.cc
diff --git a/components/tracing/common/process_metrics_memory_dump_provider.cc b/components/tracing/common/process_metrics_memory_dump_provider.cc
index 3f2abde07f9c7143049f87ab7065c24e39efa490..da35fbca75dd67e99febd40567b90707d077fcd2 100644
--- a/components/tracing/common/process_metrics_memory_dump_provider.cc
+++ b/components/tracing/common/process_metrics_memory_dump_provider.cc
@@ -633,6 +633,13 @@ bool ProcessMetricsMemoryDumpProvider::DumpProcessTotals(
uint64_t peak_rss_bytes = 0;
+#if defined(OS_LINUX)
hjd 2017/04/26 14:24:15 I need to try this out on the other two platforms
+ base::trace_event::ProcessMemoryTotals::PlatformPrivateFootprint& footprint =
+ pmd->process_totals()->GetPlatformPrivateFootprint();
+ footprint.rss_anon_bytes = process_metrics_->GetRssAnonBytes();
+ footprint.vm_swap_bytes = process_metrics_->GetVmSwapBytes();
+#endif // defined(OS_LINUX)
+
#if !defined(OS_IOS)
peak_rss_bytes = process_metrics_->GetPeakWorkingSetSize();
#if defined(OS_LINUX) || defined(OS_ANDROID)
« no previous file with comments | « base/trace_event/process_memory_totals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698