OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
7 | 7 |
8 namespace performance_monitor { | 8 namespace performance_monitor { |
9 | 9 |
10 // TODO(chebert): i18n on all constants. | 10 // Constants which are used by the PerformanceMonitor and its related classes. |
| 11 // The constants should be documented alongside the definition of their values |
| 12 // in the .cc file. |
| 13 |
11 extern const char kMetricNotFoundError[]; | 14 extern const char kMetricNotFoundError[]; |
| 15 extern const char kProcessChromeAggregate[]; |
| 16 extern const int kGatherIntervalInMinutes; |
12 | 17 |
13 // Any metric that is not associated with a specific activity will use this as | 18 // State tokens |
14 // its activity. | 19 extern const char kStateChromeVersion[]; |
15 extern const char kProcessChromeAggregate[]; | 20 extern const char kStateProfilePrefix[]; |
16 | 21 |
17 // Metrics keys for statistics gathering. | 22 // Metric details |
18 extern const char kMetricCPUUsageName[]; | 23 extern const char kMetricCPUUsageName[]; |
19 extern const char kMetricCPUUsageDescription[]; | 24 extern const char kMetricCPUUsageDescription[]; |
20 extern const char kMetricCPUUsageUnits[]; | 25 extern const char kMetricCPUUsageUnits[]; |
21 extern const double kMetricCPUUsageTickSize; | 26 extern const double kMetricCPUUsageTickSize; |
22 | |
23 extern const char kMetricPrivateMemoryUsageName[]; | 27 extern const char kMetricPrivateMemoryUsageName[]; |
24 extern const char kMetricPrivateMemoryUsageDescription[]; | 28 extern const char kMetricPrivateMemoryUsageDescription[]; |
25 extern const char kMetricPrivateMemoryUsageUnits[]; | 29 extern const char kMetricPrivateMemoryUsageUnits[]; |
26 extern const double kMetricPrivateMemoryUsageTickSize; | 30 extern const double kMetricPrivateMemoryUsageTickSize; |
27 | 31 |
28 extern const char kStateChromeVersion[]; | |
29 | |
30 } // namespace performance_monitor | 32 } // namespace performance_monitor |
31 | 33 |
32 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 34 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
OLD | NEW |