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

Unified Diff: chrome/browser/performance_monitor/metric_details.h

Issue 10805050: Chrome Performance Monitor: MetricDetails refactor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced + nit. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/performance_monitor/metric_details.h
diff --git a/chrome/browser/performance_monitor/metric_details.h b/chrome/browser/performance_monitor/metric_details.h
index 6efae2fa14a61947a66daa2cc9002e6763de2cdc..67824160af3c1c887e9516732dd86948b52ac6ad 100644
--- a/chrome/browser/performance_monitor/metric_details.h
+++ b/chrome/browser/performance_monitor/metric_details.h
@@ -9,23 +9,22 @@
namespace performance_monitor {
+// Keep this enum synced with kMetricDetailsList in the cc file.
enum MetricType {
- METRIC_SAMPLE,
+ METRIC_CPU_USAGE,
+ METRIC_PRIVATE_MEMORY_USAGE,
METRIC_NUMBER_OF_METRICS
};
-const char* MetricTypeToString(MetricType event_type);
-
struct MetricDetails {
- MetricDetails();
- MetricDetails(const std::string& metric_name,
- const std::string& metric_description);
- ~MetricDetails();
-
- std::string name;
- std::string description;
+ const char* const name;
+ const char* const description;
+ const char* const units;
+ const double tick_size;
};
+const MetricDetails* GetMetricDetails(MetricType event_type);
+
} // namespace performance_monitor
#endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_
« no previous file with comments | « chrome/browser/performance_monitor/database_unittest.cc ('k') | chrome/browser/performance_monitor/metric_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698