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

Side by Side Diff: base/process/process_metrics.cc

Issue 549753002: Cleanup bits of base::ProcessMetrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/process/process_metrics.h" 5 #include "base/process/process_metrics.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace base { 10 namespace base {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 double ProcessMetrics::GetPlatformIndependentCPUUsage() { 46 double ProcessMetrics::GetPlatformIndependentCPUUsage() {
47 #if defined(OS_WIN) 47 #if defined(OS_WIN)
48 return GetCPUUsage() * processor_count_; 48 return GetCPUUsage() * processor_count_;
49 #else 49 #else
50 return GetCPUUsage(); 50 return GetCPUUsage();
51 #endif 51 #endif
52 } 52 }
53 53
54 #if !defined(OS_MACOSX) 54 #if !defined(OS_MACOSX)
55 int ProcessMetrics::GetIdleWakeupsPerSecond() { 55 int ProcessMetrics::GetIdleWakeupsPerSecond() {
56 NOTIMPLEMENTED(); // http://crbug.com/20488 56 NOTIMPLEMENTED(); // http://crbug.com/120488
Lei Zhang 2014/09/06 09:31:57 typo
57 return 0; 57 return 0;
58 } 58 }
59 #endif // !defined(OS_MACOSX) 59 #endif // !defined(OS_MACOSX)
60 60
61 } // namespace base 61 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698