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_METRIC_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ |
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/time.h" | 9 #include "base/time/time.h" |
10 | 10 |
11 namespace performance_monitor { | 11 namespace performance_monitor { |
12 | 12 |
13 // IMPORTANT: To add new metrics, please | 13 // IMPORTANT: To add new metrics, please |
14 // - Place the new metric above METRIC_NUMBER_OF_METRICS. | 14 // - Place the new metric above METRIC_NUMBER_OF_METRICS. |
15 // - Add a member to the MetricKeyChar enum in key_builder.cc. | 15 // - Add a member to the MetricKeyChar enum in key_builder.cc. |
16 // - Add the appropriate messages in generated_resources.grd. | 16 // - Add the appropriate messages in generated_resources.grd. |
17 // - Add the appropriate functions in | 17 // - Add the appropriate functions in |
18 // chrome/browser/ui/webui/performance_monitor/performance_monitor_l10n.h. | 18 // chrome/browser/ui/webui/performance_monitor/performance_monitor_l10n.h. |
19 enum MetricType { | 19 enum MetricType { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 std::string ValueAsString() const; | 61 std::string ValueAsString() const; |
62 | 62 |
63 MetricType type; | 63 MetricType type; |
64 base::Time time; | 64 base::Time time; |
65 double value; | 65 double value; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace performance_monitor | 68 } // namespace performance_monitor |
69 | 69 |
70 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ | 70 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ |
OLD | NEW |