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

Unified Diff: components/tracing/common/process_metrics_memory_dump_provider.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 | « chrome/browser/memory_details_mac.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 2936256acd3afbde8d91a9472877fe50f0f7c403..3f2abde07f9c7143049f87ab7065c24e39efa490 100644
--- a/components/tracing/common/process_metrics_memory_dump_provider.cc
+++ b/components/tracing/common/process_metrics_memory_dump_provider.cc
@@ -614,6 +614,13 @@ bool ProcessMetricsMemoryDumpProvider::DumpProcessTotals(
pmd->process_totals()->SetExtraFieldInBytes("private_bytes", private_bytes);
pmd->process_totals()->SetExtraFieldInBytes("shared_bytes", shared_bytes);
pmd->process_totals()->SetExtraFieldInBytes("locked_bytes", locked_bytes);
+
+ base::trace_event::ProcessMemoryTotals::PlatformPrivateFootprint& footprint =
+ pmd->process_totals()->GetPlatformPrivateFootprint();
+ base::ProcessMetrics::TaskVMInfo info = process_metrics_->GetTaskVMInfo();
+ footprint.phys_footprint_bytes = info.phys_footprint;
+ footprint.internal_bytes = info.internal;
+ footprint.compressed_bytes = info.compressed;
#else
uint64_t rss_bytes = process_metrics_->GetWorkingSetSize();
#endif // defined(OS_MACOSX)
« no previous file with comments | « chrome/browser/memory_details_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698