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 #include "chrome/browser/performance_monitor/metric_details.h" | 5 #include "chrome/browser/performance_monitor/metric_details.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/performance_monitor/constants.h" | 8 #include "chrome/browser/performance_monitor/constants.h" |
9 | 9 |
10 namespace performance_monitor { | 10 namespace performance_monitor { |
(...skipping 25 matching lines...) Expand all Loading... |
36 kMetricTestStartupTimeDescription, | 36 kMetricTestStartupTimeDescription, |
37 kMetricTestStartupTimeUnits, | 37 kMetricTestStartupTimeUnits, |
38 kMetricTestStartupTimeTickSize | 38 kMetricTestStartupTimeTickSize |
39 }, | 39 }, |
40 { | 40 { |
41 kMetricSessionRestoreTimeName, | 41 kMetricSessionRestoreTimeName, |
42 kMetricSessionRestoreTimeDescription, | 42 kMetricSessionRestoreTimeDescription, |
43 kMetricSessionRestoreTimeUnits, | 43 kMetricSessionRestoreTimeUnits, |
44 kMetricSessionRestoreTimeTickSize | 44 kMetricSessionRestoreTimeTickSize |
45 }, | 45 }, |
| 46 { |
| 47 kMetricPageLoadTimeName, |
| 48 kMetricPageLoadTimeDescription, |
| 49 kMetricPageLoadTimeUnits, |
| 50 kMetricPageLoadTimeTickSize |
| 51 } |
46 }; | 52 }; |
47 COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kMetricDetailsList) == METRIC_NUMBER_OF_METRICS, | 53 COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kMetricDetailsList) == METRIC_NUMBER_OF_METRICS, |
48 metric_names_incorrect_size); | 54 metric_names_incorrect_size); |
49 | 55 |
50 } // namespace | 56 } // namespace |
51 | 57 |
52 const MetricDetails* GetMetricDetails(MetricType metric_type) { | 58 const MetricDetails* GetMetricDetails(MetricType metric_type) { |
53 DCHECK_GT(METRIC_NUMBER_OF_METRICS, metric_type); | 59 DCHECK_GT(METRIC_NUMBER_OF_METRICS, metric_type); |
54 return &kMetricDetailsList[metric_type]; | 60 return &kMetricDetailsList[metric_type]; |
55 } | 61 } |
56 | 62 |
57 } // namespace performance_monitor | 63 } // namespace performance_monitor |
OLD | NEW |