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

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

Issue 10829078: CPM Page Load timing (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_event_refactor
Patch Set: Nits + Latest master for CQ 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 9b5f1db62ef826823deaf3671150a632cd66b6a7..98d3a975898e0f3c151828e5dba6425bf99b07ea 100644
--- a/chrome/browser/performance_monitor/metric_details.cc
+++ b/chrome/browser/performance_monitor/metric_details.cc
@@ -58,6 +58,13 @@ const char kMetricSessionRestoreTimeDescription[] =
const char kMetricSessionRestoreTimeUnits[] = "microseconds";
const double kMetricSessionRestoreTimeTickSize = 5000000;
+// Page Load Time
+const char kMetricPageLoadTimeName[] = "Page Load Time";
+const char kMetricPageLoadTimeDescription[] =
+ "The amount of time taken to load a page measured in microseconds.";
+const char kMetricPageLoadTimeUnits[] = "microseconds";
+const double kMetricPageLoadTimeTickSize = 30000000.0;
+
// Keep this array synced with MetricTypes in the header file.
// TODO(mtytel): i18n.
const MetricDetails kMetricDetailsList[] = {
@@ -96,6 +103,12 @@ const MetricDetails kMetricDetailsList[] = {
kMetricSessionRestoreTimeDescription,
kMetricSessionRestoreTimeUnits,
kMetricSessionRestoreTimeTickSize
+ },
+ {
+ kMetricPageLoadTimeName,
+ kMetricPageLoadTimeDescription,
+ kMetricPageLoadTimeUnits,
+ kMetricPageLoadTimeTickSize
}
};
COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kMetricDetailsList) == METRIC_NUMBER_OF_METRICS,
« no previous file with comments | « chrome/browser/performance_monitor/metric_details.h ('k') | chrome/browser/performance_monitor/performance_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698