OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |