| 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 | |
| 10 namespace performance_monitor { | 8 namespace performance_monitor { |
| 11 | 9 |
| 12 // Constants which are used by the PerformanceMonitor and its related classes. | 10 // Constants which are used by the PerformanceMonitor and its related classes. |
| 13 // The constants should be documented alongside the definition of their values | 11 // The constants should be documented alongside the definition of their values |
| 14 // in the .cc file. | 12 // in the .cc file. |
| 15 | 13 |
| 16 extern const char kMetricNotFoundError[]; | 14 extern const char kMetricNotFoundError[]; |
| 17 extern const char kProcessChromeAggregate[]; | 15 extern const char kProcessChromeAggregate[]; |
| 18 extern const int kDefaultGatherIntervalInSeconds; | 16 extern const int kDefaultGatherIntervalInSeconds; |
| 19 | 17 |
| 20 // State tokens | 18 // State tokens |
| 21 extern const char kStateChromeVersion[]; | 19 extern const char kStateChromeVersion[]; |
| 22 extern const char kStateProfilePrefix[]; | 20 extern const char kStateProfilePrefix[]; |
| 23 | 21 |
| 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 | |
| 39 } // namespace performance_monitor | 22 } // namespace performance_monitor |
| 40 | 23 |
| 41 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ | 24 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_ |
| OLD | NEW |