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

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

Issue 2782503002: Add new wired memory metric to memory-infra dumps. (Closed)
Patch Set: Disable locked bytes tests on ASAN. Created 3 years, 9 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/task_manager/sampling/task_group_sampler.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 c2961357f60eeaf42549955f4abd6ca9d022e6e5..ef386ccc4fae99683ad22fb13e787d66324ceb2d 100644
--- a/components/tracing/common/process_metrics_memory_dump_provider.cc
+++ b/components/tracing/common/process_metrics_memory_dump_provider.cc
@@ -612,13 +612,15 @@ bool ProcessMetricsMemoryDumpProvider::DumpProcessTotals(
size_t private_bytes;
size_t shared_bytes;
size_t resident_bytes;
+ size_t locked_bytes;
if (!process_metrics_->GetMemoryBytes(&private_bytes, &shared_bytes,
- &resident_bytes)) {
+ &resident_bytes, &locked_bytes)) {
return false;
}
uint64_t rss_bytes = resident_bytes;
pmd->process_totals()->SetExtraFieldInBytes("private_bytes", private_bytes);
pmd->process_totals()->SetExtraFieldInBytes("shared_bytes", shared_bytes);
+ pmd->process_totals()->SetExtraFieldInBytes("locked_bytes", locked_bytes);
#else
uint64_t rss_bytes = process_metrics_->GetWorkingSetSize();
#endif // defined(OS_MACOSX)
« no previous file with comments | « chrome/browser/task_manager/sampling/task_group_sampler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698