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

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

Issue 10829342: Add BytesRead metric to CPM (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed const char[]s so that FILE_PATH_LITERAL and append both work 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/performance_monitor/metric_details.cc
diff --git a/chrome/browser/performance_monitor/metric_details.cc b/chrome/browser/performance_monitor/metric_details.cc
index 98d3a975898e0f3c151828e5dba6425bf99b07ea..1bcf96614c27936d2ac94a4696dedd88ccc52093 100644
--- a/chrome/browser/performance_monitor/metric_details.cc
+++ b/chrome/browser/performance_monitor/metric_details.cc
@@ -65,6 +65,13 @@ const char kMetricPageLoadTimeDescription[] =
const char kMetricPageLoadTimeUnits[] = "microseconds";
const double kMetricPageLoadTimeTickSize = 30000000.0;
+// Network Bytes Read
+const char kMetricNetworkBytesReadName[] = "Network Bytes Read";
+const char kMetricNetworkBytesReadDescription[] =
+ "The number of bytes read across the network.";
+const char kMetricNetworkBytesReadUnits[] = "bytes";
+const double kMetricNetworkBytesReadTickSize = 2000000.0;
+
// Keep this array synced with MetricTypes in the header file.
// TODO(mtytel): i18n.
const MetricDetails kMetricDetailsList[] = {
@@ -109,6 +116,12 @@ const MetricDetails kMetricDetailsList[] = {
kMetricPageLoadTimeDescription,
kMetricPageLoadTimeUnits,
kMetricPageLoadTimeTickSize
+ },
+ {
+ kMetricNetworkBytesReadName,
+ kMetricNetworkBytesReadDescription,
+ kMetricNetworkBytesReadUnits,
+ kMetricNetworkBytesReadTickSize
}
};
COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kMetricDetailsList) == METRIC_NUMBER_OF_METRICS,
« no previous file with comments | « chrome/browser/performance_monitor/metric.h ('k') | chrome/browser/performance_monitor/performance_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698