Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Side by Side Diff: chrome/browser/performance_monitor/constants.h

Issue 10907121: Add guards to metric values; erase bad events/metrics from db (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_use_units
Patch Set: Estade's requests Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/performance_monitor/constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/performance_monitor/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698