| 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 #include "chrome/browser/performance_monitor/metric.h" |
| 11 |
| 10 namespace performance_monitor { | 12 namespace performance_monitor { |
| 11 | 13 |
| 12 // Keep this enum synced with kMetricDetailsList in the cc file. | |
| 13 enum MetricType { | |
| 14 METRIC_CPU_USAGE, | |
| 15 METRIC_PRIVATE_MEMORY_USAGE, | |
| 16 METRIC_SHARED_MEMORY_USAGE, | |
| 17 METRIC_STARTUP_TIME, | |
| 18 METRIC_TEST_STARTUP_TIME, | |
| 19 METRIC_SESSION_RESTORE_TIME, | |
| 20 METRIC_PAGE_LOAD_TIME, | |
| 21 METRIC_NUMBER_OF_METRICS | |
| 22 }; | |
| 23 | |
| 24 struct MetricDetails { | 14 struct MetricDetails { |
| 25 const char* const name; | 15 const char* const name; |
| 26 const char* const description; | 16 const char* const description; |
| 27 const char* const units; | 17 const char* const units; |
| 28 const double tick_size; | 18 const double tick_size; |
| 29 }; | 19 }; |
| 30 | 20 |
| 31 const MetricDetails* GetMetricDetails(MetricType event_type); | 21 const MetricDetails* GetMetricDetails(MetricType event_type); |
| 32 | 22 |
| 33 } // namespace performance_monitor | 23 } // namespace performance_monitor |
| 34 | 24 |
| 35 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ | 25 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
| OLD | NEW |