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 #include "base/basictypes.h" |
| 9 |
8 namespace performance_monitor { | 10 namespace performance_monitor { |
9 | 11 |
10 // Constants which are used by the PerformanceMonitor and its related classes. | 12 // Constants which are used by the PerformanceMonitor and its related classes. |
11 // The constants should be documented alongside the definition of their values | 13 // The constants should be documented alongside the definition of their values |
12 // in the .cc file. | 14 // in the .cc file. |
13 | 15 |
14 extern const char kMetricNotFoundError[]; | 16 extern const char kMetricNotFoundError[]; |
15 extern const char kProcessChromeAggregate[]; | 17 extern const char kProcessChromeAggregate[]; |
16 extern const int kDefaultGatherIntervalInSeconds; | 18 extern const int kDefaultGatherIntervalInSeconds; |
17 | 19 |
18 // State tokens | 20 // State tokens |
19 extern const char kStateChromeVersion[]; | 21 extern const char kStateChromeVersion[]; |
20 extern const char kStateProfilePrefix[]; | 22 extern const char kStateProfilePrefix[]; |
21 | 23 |
| 24 // Unit values (for use in metric, and on the UI side). |
| 25 |
| 26 // Memory measurements |
| 27 extern const int64 kBytesPerKilobyte; |
| 28 extern const int64 kBytesPerMegabyte; |
| 29 extern const int64 kBytesPerGigabyte; |
| 30 extern const int64 kBytesPerTerabyte; |
| 31 |
| 32 // Time measurements - Most of these are imported from base/time.h |
| 33 // These units are used for display (and it's related calculations), not for |
| 34 // any mathematical analysis. Thus we can estimate for values without an exact |
| 35 // conversion. |
| 36 extern const int64 kMicrosecondsPerMonth; |
| 37 extern const int64 kMicrosecondsPerYear; |
| 38 |
22 } // namespace performance_monitor | 39 } // namespace performance_monitor |
23 | 40 |
24 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 41 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
OLD | NEW |