Chromium Code Reviews| 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) |