| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ |
| 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ |
| 7 |
| 8 #include <string> |
| 9 #include "base/time.h" |
| 10 |
| 11 namespace performance_monitor { |
| 12 |
| 13 // IMPORTANT: This is used as an indication of the metric type within the |
| 14 // performance monitor database; do not change the order! If you add new |
| 15 // metric types to this list, place them above METRIC_NUMBER_OF_METRICS and add |
| 16 // the appropriate messages/functions in generated_resources.grd and in |
| 17 // chrome/browser/ui/webui/performance_monitor/l10n_util. |
| 18 enum MetricType { |
| 19 METRIC_CPU_USAGE, |
| 20 METRIC_PRIVATE_MEMORY_USAGE, |
| 21 METRIC_SHARED_MEMORY_USAGE, |
| 22 METRIC_STARTUP_TIME, |
| 23 METRIC_TEST_STARTUP_TIME, |
| 24 METRIC_SESSION_RESTORE_TIME, |
| 25 METRIC_PAGE_LOAD_TIME, |
| 26 METRIC_NUMBER_OF_METRICS |
| 27 }; |
| 28 |
| 29 struct Metric { |
| 30 public: |
| 31 Metric(); |
| 32 Metric(const base::Time& metric_time, const double metric_value); |
| 33 Metric(const std::string& metric_time, const std::string& metric_value); |
| 34 ~Metric(); |
| 35 |
| 36 base::Time time; |
| 37 double value; |
| 38 }; |
| 39 |
| 40 } // namespace performance_monitor |
| 41 |
| 42 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_ |
| OLD | NEW |