Commit 17f8d580 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Refactoring: Remove unused argument from GetCPUTypeForProcess

Bug: 742042
Change-Id: I5ff8f3b7be14be1b79bb43ebd349aded5aa818b9
Reviewed-on: https://chromium-review.googlesource.com/575304Reviewed-by: default avatardanakj <danakj@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487882}
parent d508a563
...@@ -68,7 +68,7 @@ bool GetTaskInfo(mach_port_t task, task_basic_info_64* task_info_data) { ...@@ -68,7 +68,7 @@ bool GetTaskInfo(mach_port_t task, task_basic_info_64* task_info_data) {
return kr == KERN_SUCCESS; return kr == KERN_SUCCESS;
} }
bool GetCPUTypeForProcess(pid_t pid, cpu_type_t* cpu_type) { bool GetCPUType(cpu_type_t* cpu_type) {
size_t len = sizeof(*cpu_type); size_t len = sizeof(*cpu_type);
int result = sysctlbyname("sysctl.proc_cputype", int result = sysctlbyname("sysctl.proc_cputype",
cpu_type, cpu_type,
...@@ -165,7 +165,7 @@ bool ProcessMetrics::GetMemoryBytes(size_t* private_bytes, ...@@ -165,7 +165,7 @@ bool ProcessMetrics::GetMemoryBytes(size_t* private_bytes,
} }
cpu_type_t cpu_type; cpu_type_t cpu_type;
if (!GetCPUTypeForProcess(process_, &cpu_type)) if (!GetCPUType(&cpu_type))
return false; return false;
// The same region can be referenced multiple times. To avoid double counting // The same region can be referenced multiple times. To avoid double counting
......
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