| Index: chrome/browser/performance_monitor/constants.h
|
| diff --git a/chrome/browser/performance_monitor/constants.h b/chrome/browser/performance_monitor/constants.h
|
| index 84dfb8ea775f3463e3dae46e0127e50dd6e34733..f9eee3fb9c2625cf1b05922d797534029f107394 100644
|
| --- a/chrome/browser/performance_monitor/constants.h
|
| +++ b/chrome/browser/performance_monitor/constants.h
|
| @@ -5,43 +5,11 @@
|
| #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_
|
| #define CHROME_BROWSER_PERFORMANCE_MONITOR_CONSTANTS_H_
|
|
|
| -#include "base/basictypes.h"
|
| -#include "base/time/time.h"
|
| -
|
| namespace performance_monitor {
|
|
|
| -// Constants which are used by the PerformanceMonitor and its related classes.
|
| -// The constants should be documented alongside the definition of their values
|
| -// in the .cc file.
|
| -
|
| -extern const char kMetricNotFoundError[];
|
| -extern const char kProcessChromeAggregate[];
|
| -
|
| -// State tokens
|
| -extern const char kStateChromeVersion[];
|
| -extern const char kStateProfilePrefix[];
|
| -
|
| -// The interval the watched processes are sampled for performance metrics.
|
| -const int kSampleIntervalInSeconds = 10;
|
| // The default interval at which PerformanceMonitor performs its timed
|
| -// collections; this can be overridden by using the kPerformanceMonitorGathering
|
| -// switch with an associated (positive integer) value.
|
| -const int kDefaultGatherIntervalInSeconds = 120;
|
| -
|
| -// Unit values (for use in metric, and on the UI side).
|
| -
|
| -// Memory measurements
|
| -const int64 kBytesPerKilobyte = 1 << 10;
|
| -const int64 kBytesPerMegabyte = kBytesPerKilobyte * (1 << 10);
|
| -const int64 kBytesPerGigabyte = kBytesPerMegabyte * (1 << 10);
|
| -const int64 kBytesPerTerabyte = kBytesPerGigabyte * (1 << 10);
|
| -
|
| -// Time measurements - Most of these are imported from base/time/time.h
|
| -// These units are used for display (and it's related calculations), not for
|
| -// any mathematical analysis. Thus we can estimate for values without an exact
|
| -// conversion.
|
| -const int64 kMicrosecondsPerMonth = base::Time::kMicrosecondsPerDay * 30;
|
| -const int64 kMicrosecondsPerYear = base::Time::kMicrosecondsPerDay * 365;
|
| +// collections.
|
| +const int kGatherIntervalInSeconds = 120;
|
|
|
| // Performance alert thresholds
|
|
|
|
|