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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1426673009: Log UMA for navigation start timestamp skew for browser-initiated loads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation_start_renderer
Patch Set: use UMA_HISTOGRAM_TIMES Created 5 years, 1 month 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 5a9da313bc67b3f7b2932be454a43784b50d4c8b..22687d65b135fe29602143f958169c2ce8f1be0b 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -473,9 +473,15 @@ base::TimeTicks SanitizeNavigationTiming(
DCHECK(!browser_navigation_start.is_null());
base::TimeTicks navigation_start =
std::min(browser_navigation_start, renderer_navigation_start);
- // TODO(csharrison) Investigate how big a problem the cross process
- // monotonicity really is and on what platforms. Log UMA for:
- // |renderer_navigation_start - browser_navigation_start|
+ base::TimeDelta difference =
+ renderer_navigation_start - browser_navigation_start;
+ if (difference > base::TimeDelta()) {
+ UMA_HISTOGRAM_TIMES("Navigation.Start.RendererBrowserDifference.Positive",
+ difference);
+ } else {
+ UMA_HISTOGRAM_TIMES("Navigation.Start.RendererBrowserDifference.Negative",
+ -difference);
+ }
return navigation_start;
}
« 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