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_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace performance_monitor { | 10 namespace performance_monitor { |
11 | 11 |
12 // Keep this enum synced with kMetricDetailsList in the cc file. | 12 // Keep this enum synced with kMetricDetailsList in the cc file. |
13 enum MetricType { | 13 enum MetricType { |
14 METRIC_CPU_USAGE, | 14 METRIC_CPU_USAGE, |
15 METRIC_PRIVATE_MEMORY_USAGE, | 15 METRIC_PRIVATE_MEMORY_USAGE, |
16 METRIC_SHARED_MEMORY_USAGE, | |
17 METRIC_NUMBER_OF_METRICS | 16 METRIC_NUMBER_OF_METRICS |
18 }; | 17 }; |
19 | 18 |
20 struct MetricDetails { | 19 struct MetricDetails { |
21 const char* const name; | 20 const char* const name; |
22 const char* const description; | 21 const char* const description; |
23 const char* const units; | 22 const char* const units; |
24 const double tick_size; | 23 const double tick_size; |
25 }; | 24 }; |
26 | 25 |
27 const MetricDetails* GetMetricDetails(MetricType event_type); | 26 const MetricDetails* GetMetricDetails(MetricType event_type); |
28 | 27 |
29 } // namespace performance_monitor | 28 } // namespace performance_monitor |
30 | 29 |
31 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ | 30 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
OLD | NEW |