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

Unified Diff: chrome/renderer/page_load_histograms.cc

Issue 1325593003: Record "time to first text paint" UMA metrics in PageLoadHistograms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/page_load_histograms.cc
diff --git a/chrome/renderer/page_load_histograms.cc b/chrome/renderer/page_load_histograms.cc
index b7fd03ec3cc5e3d03c096bf516a86d3c7a3e48d4..5d7669a3e5a537adcc2176c317cf34c55fa2d86e 100644
--- a/chrome/renderer/page_load_histograms.cc
+++ b/chrome/renderer/page_load_histograms.cc
@@ -252,6 +252,10 @@ void DumpHistograms(const WebPerformance& performance,
Time load_event_end = Time::FromDoubleT(performance.loadEventEnd());
Time begin = (request.is_null() ? navigation_start : request_start);
Time first_paint = document_state->first_paint_time();
+ Time first_non_blank_text =
+ Time::FromDoubleT(performance.firstNonBlankText());
+ Time first_custom_font_text =
+ Time::FromDoubleT(performance.firstCustomFontText());
DCHECK(!navigation_start.is_null());
@@ -597,6 +601,12 @@ void DumpHistograms(const WebPerformance& performance,
response_start - navigation_start);
}
}
+ if (!first_non_blank_text.is_null())
+ PLT_HISTOGRAM("PLT.BeginToFirstNonBlankText", first_non_blank_text - begin);
+ if (!first_custom_font_text.is_null()) {
+ PLT_HISTOGRAM("PLT.BeginToFirstCustomFontText",
+ first_custom_font_text - begin);
+ }
}
// These histograms are based on the timing information collected in
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698