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

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

Issue 10702117: Chrome Performance Monitor: Metric API Functions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Docs and other review fixes. Created 8 years, 5 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
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 namespace performance_monitor { 11 namespace performance_monitor {
12 12
13 enum MetricType {
14 METRIC_SAMPLE,
15 METRIC_NUMBER_OF_METRICS
16 };
17
18 const char* MetricTypeToString(MetricType event_type);
19
13 struct MetricDetails { 20 struct MetricDetails {
14 MetricDetails(); 21 MetricDetails();
15 MetricDetails(const std::string& metric_name, 22 MetricDetails(const std::string& metric_name,
16 const std::string& metric_description); 23 const std::string& metric_description);
17 ~MetricDetails(); 24 ~MetricDetails();
18 25
19 std::string name; 26 std::string name;
20 std::string description; 27 std::string description;
21 }; 28 };
22 29
23 } // namespace performance_monitor 30 } // namespace performance_monitor
24 31
25 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ 32 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698