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

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

Issue 2866723002: Fill in PlatformPrivateFootprint on Linux 2/2 (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « base/process/process_metrics_linux.cc ('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 7db23920f1e1f560bb16e0760d4cbfe96f385332..696c58c8ae0d1c07bc3a7512eff69adcdaf9d65f 100644
--- a/components/tracing/common/process_metrics_memory_dump_provider.cc
+++ b/components/tracing/common/process_metrics_memory_dump_provider.cc
@@ -655,8 +655,8 @@ bool ProcessMetricsMemoryDumpProvider::DumpProcessTotals(
if (!success)
return false;
- // TODO(hjd): Implement swap in the next CL.
footprint.rss_anon_bytes = (resident_pages - shared_pages) * page_size;
+ footprint.vm_swap_bytes = process_metrics_->GetVmSwapBytes();
#endif // defined(OS_LINUX) || defined(OS_ANDROID)
#if !defined(OS_IOS)
« no previous file with comments | « base/process/process_metrics_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698