From cd7bc0e50cd304878647f28c5be2afff05e0b938 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Fri, 13 May 2016 17:57:35 -0700 Subject: [PATCH] Rename Metrics => MemoryInfo so it's consistent --- atom/common/api/atom_api_process_stats.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/common/api/atom_api_process_stats.cc b/atom/common/api/atom_api_process_stats.cc index 8604df67d601..debe40570959 100644 --- a/atom/common/api/atom_api_process_stats.cc +++ b/atom/common/api/atom_api_process_stats.cc @@ -13,7 +13,7 @@ namespace { -v8::Local GetProcessMetrics(v8::Isolate* isolate) { +v8::Local GetProcessMemoryInfo(v8::Isolate* isolate) { mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate); std::unique_ptr metrics( base::ProcessMetrics::CreateCurrentProcessMetrics()); @@ -54,7 +54,7 @@ v8::Local GetSystemMemoryInfo(v8::Isolate* isolate, mate::Arguments* void Initialize(v8::Local exports, v8::Local unused, v8::Local context, void* priv) { mate::Dictionary dict(context->GetIsolate(), exports); - dict.SetMethod("getProcessMetrics", &GetProcessMetrics); + dict.SetMethod("getProcessMemoryInfo", &GetProcessMemoryInfo); dict.SetMethod("getSystemMemoryInfo", &GetSystemMemoryInfo); }