Commit ce055512 authored by erikchen's avatar erikchen Committed by Commit Bot

Change name of method from GetRSS -> GetResidentSetSize.

Bug: 819289
Change-Id: I029d5adfef0a650998778c1b56ea8782a66ff3e2
Reviewed-on: https://chromium-review.googlesource.com/956573Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542283}
parent e5450f0a
......@@ -154,7 +154,7 @@ class BASE_EXPORT ProcessMetrics {
#if defined(OS_LINUX) || defined(OS_ANDROID)
// Resident Set Size is a Linux/Android specific memory concept. Do not
// attempt to extend this to other platforms.
BASE_EXPORT size_t GetRSS() const;
BASE_EXPORT size_t GetResidentSetSize() const;
#endif
#if defined(OS_MACOSX)
......
......@@ -211,7 +211,7 @@ std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics(
return WrapUnique(new ProcessMetrics(process));
}
size_t ProcessMetrics::GetRSS() const {
size_t ProcessMetrics::GetResidentSetSize() const {
return internal::ReadProcStatsAndGetFieldAsSizeT(process_, internal::VM_RSS) *
getpagesize();
}
......
......@@ -200,7 +200,7 @@ bool OSMetrics::FillOSMemoryDump(base::ProcessId pid,
dump->platform_private_footprint->rss_anon_bytes = rss_anon_bytes;
dump->platform_private_footprint->vm_swap_bytes = vm_swap_bytes;
dump->resident_set_kb = process_metrics->GetRSS() / 1024;
dump->resident_set_kb = process_metrics->GetResidentSetSize() / 1024;
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment