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

Unified Diff: content/browser/renderer_host/input/render_widget_host_latency_tracker.cc

Issue 2533223004: Keep the old TimeToFirstScrollUpdateSwapBegin2 metrics until M56 is stable (Closed)
Patch Set: old metrics Created 4 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/browser/renderer_host/input/render_widget_host_latency_tracker.cc
diff --git a/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc b/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc
index 0c116e9c34e826f6301e2b8573b03039d9b027fa..3d8de093dfb1a32362ef5bc0182aa0073344d8fa 100644
--- a/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc
+++ b/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc
@@ -261,6 +261,13 @@ void ComputeTouchAndWheelScrollLatencyHistograms(
"Event.Latency.ScrollBegin." + event_type_name +
".TimeToScrollUpdateSwapBegin2",
original_component, gpu_swap_begin_component);
+
+ // TODO(lanwei): Will remove them when M56 is stable, see
+ // https://crbug.com/669618.
+ UMA_HISTOGRAM_TOUCH_WHEEL_TO_SCROLL_LATENCY(
+ "Event.Latency.ScrollUpdate." + event_type_name +
+ ".TimeToFirstScrollUpdateSwapBegin2",
+ original_component, gpu_swap_begin_component);
} else if (latency.FindLatency(
ui::INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT,
latency_component_id, &original_component)) {
« 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