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[]; |
12 | |
13 // Any metric that is not associated with a specific activity will use this as | |
14 // its activity. | |
15 extern const char kProcessChromeAggregate[]; | 15 extern const char kProcessChromeAggregate[]; |
16 | 16 |
17 // Metrics keys for statistics gathering. | 17 // State tokens |
| 18 extern const char kStateChromeVersion[]; |
| 19 extern const char kStateProfilePrefix[]; |
| 20 |
| 21 // Metric details |
18 extern const char kMetricCPUUsageName[]; | 22 extern const char kMetricCPUUsageName[]; |
19 extern const char kMetricCPUUsageDescription[]; | 23 extern const char kMetricCPUUsageDescription[]; |
20 extern const char kMetricCPUUsageUnits[]; | 24 extern const char kMetricCPUUsageUnits[]; |
21 extern const double kMetricCPUUsageTickSize; | 25 extern const double kMetricCPUUsageTickSize; |
22 | |
23 extern const char kMetricPrivateMemoryUsageName[]; | 26 extern const char kMetricPrivateMemoryUsageName[]; |
24 extern const char kMetricPrivateMemoryUsageDescription[]; | 27 extern const char kMetricPrivateMemoryUsageDescription[]; |
25 extern const char kMetricPrivateMemoryUsageUnits[]; | 28 extern const char kMetricPrivateMemoryUsageUnits[]; |
26 extern const double kMetricPrivateMemoryUsageTickSize; | 29 extern const double kMetricPrivateMemoryUsageTickSize; |
27 | 30 |
28 extern const char kStateChromeVersion[]; | |
29 | |
30 } // namespace performance_monitor | 31 } // namespace performance_monitor |
31 | 32 |
32 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 33 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
OLD | NEW |