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 // Constants which are used by the PerformanceMonitor and its related classes. | 10 // Constants which are used by the PerformanceMonitor and its related classes. |
11 // The constants should be documented alongside the definition of their values | 11 // The constants should be documented alongside the definition of their values |
12 // in the .cc file. | 12 // in the .cc file. |
13 | 13 |
14 extern const char kMetricNotFoundError[]; | 14 extern const char kMetricNotFoundError[]; |
15 extern const char kProcessChromeAggregate[]; | 15 extern const char kProcessChromeAggregate[]; |
16 extern const int kGatherIntervalInMinutes; | 16 extern const int kGatherIntervalInMinutes; |
17 | 17 |
18 // State tokens | 18 // State tokens |
19 extern const char kStateChromeVersion[]; | 19 extern const char kStateChromeVersion[]; |
20 extern const char kStateProfilePrefix[]; | 20 extern const char kStateProfilePrefix[]; |
21 | 21 |
22 // Metric details | |
23 extern const char kMetricCPUUsageName[]; | |
24 extern const char kMetricCPUUsageDescription[]; | |
25 extern const char kMetricCPUUsageUnits[]; | |
26 extern const double kMetricCPUUsageTickSize; | |
27 | |
28 extern const char kMetricPrivateMemoryUsageName[]; | |
29 extern const char kMetricPrivateMemoryUsageDescription[]; | |
30 extern const char kMetricPrivateMemoryUsageUnits[]; | |
31 extern const double kMetricPrivateMemoryUsageTickSize; | |
32 | |
33 extern const char kMetricSharedMemoryUsageName[]; | |
34 extern const char kMetricSharedMemoryUsageDescription[]; | |
35 extern const char kMetricSharedMemoryUsageUnits[]; | |
36 extern const double kMetricSharedMemoryUsageTickSize; | |
37 | |
38 extern const char kMetricStartupTimeName[]; | |
39 extern const char kMetricStartupTimeDescription[]; | |
40 extern const char kMetricStartupTimeUnits[]; | |
41 extern const double kMetricStartupTimeTickSize; | |
42 | |
43 extern const char kMetricTestStartupTimeName[]; | |
44 extern const char kMetricTestStartupTimeDescription[]; | |
45 extern const char kMetricTestStartupTimeUnits[]; | |
46 extern const double kMetricTestStartupTimeTickSize; | |
47 | |
48 extern const char kMetricSessionRestoreTimeName[]; | |
49 extern const char kMetricSessionRestoreTimeDescription[]; | |
50 extern const char kMetricSessionRestoreTimeUnits[]; | |
51 extern const double kMetricSessionRestoreTimeTickSize; | |
52 | |
53 } // namespace performance_monitor | 22 } // namespace performance_monitor |
54 | 23 |
55 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 24 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
OLD | NEW |