Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: chrome/browser/performance_monitor/metric.h

Issue 10860017: Refactor Metrics (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed DCHECK Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 constants to metric_details.
17 enum MetricType {
18 METRIC_CPU_USAGE,
19 METRIC_PRIVATE_MEMORY_USAGE,
20 METRIC_SHARED_MEMORY_USAGE,
21 METRIC_STARTUP_TIME,
22 METRIC_TEST_STARTUP_TIME,
23 METRIC_SESSION_RESTORE_TIME,
24 METRIC_PAGE_LOAD_TIME,
25 METRIC_NUMBER_OF_METRICS
26 };
27
28 struct Metric {
29 public:
30 Metric();
31 Metric(const base::Time& metric_time, const double metric_value);
32 Metric(const std::string& metric_time, const std::string& metric_value);
33 ~Metric();
34
35 base::Time time;
36 double value;
37 };
38
39 } // namespace performance_monitor
40
41 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_H_
OLDNEW
« no previous file with comments | « chrome/browser/performance_monitor/database_unittest.cc ('k') | chrome/browser/performance_monitor/metric.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698