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

Side by Side 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 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker .h" 5 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker .h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 latency_component_id, &original_component)) { 254 latency_component_id, &original_component)) {
255 scroll_name = "ScrollBegin"; 255 scroll_name = "ScrollBegin";
256 // This UMA metric tracks the time between the final frame swap for the 256 // This UMA metric tracks the time between the final frame swap for the
257 // first scroll event in a sequence and the original timestamp of that 257 // first scroll event in a sequence and the original timestamp of that
258 // scroll event's underlying touch/wheel event. 258 // scroll event's underlying touch/wheel event.
259 259
260 UMA_HISTOGRAM_TOUCH_WHEEL_TO_SCROLL_LATENCY( 260 UMA_HISTOGRAM_TOUCH_WHEEL_TO_SCROLL_LATENCY(
261 "Event.Latency.ScrollBegin." + event_type_name + 261 "Event.Latency.ScrollBegin." + event_type_name +
262 ".TimeToScrollUpdateSwapBegin2", 262 ".TimeToScrollUpdateSwapBegin2",
263 original_component, gpu_swap_begin_component); 263 original_component, gpu_swap_begin_component);
264
265 // TODO(lanwei): Will remove them when M56 is stable, see
266 // https://crbug.com/669618.
267 UMA_HISTOGRAM_TOUCH_WHEEL_TO_SCROLL_LATENCY(
268 "Event.Latency.ScrollUpdate." + event_type_name +
269 ".TimeToFirstScrollUpdateSwapBegin2",
270 original_component, gpu_swap_begin_component);
264 } else if (latency.FindLatency( 271 } else if (latency.FindLatency(
265 ui::INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT, 272 ui::INPUT_EVENT_LATENCY_SCROLL_UPDATE_ORIGINAL_COMPONENT,
266 latency_component_id, &original_component)) { 273 latency_component_id, &original_component)) {
267 // This UMA metric tracks the time from when the original touch event is 274 // This UMA metric tracks the time from when the original touch event is
268 // created to when the scroll gesture results in final frame swap. 275 // created to when the scroll gesture results in final frame swap.
269 // First scroll events are excluded from this metric. 276 // First scroll events are excluded from this metric.
270 if (event_type_name == "Touch") { 277 if (event_type_name == "Touch") {
271 UMA_HISTOGRAM_TOUCH_WHEEL_TO_SCROLL_LATENCY( 278 UMA_HISTOGRAM_TOUCH_WHEEL_TO_SCROLL_LATENCY(
272 "Event.Latency.ScrollUpdate." + event_type_name + 279 "Event.Latency.ScrollUpdate." + event_type_name +
273 ".TimeToScrollUpdateSwapBegin2", 280 ".TimeToScrollUpdateSwapBegin2",
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 if (!latency.FindLatency( 723 if (!latency.FindLatency(
717 ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, 0, 724 ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, 0,
718 &mouse_wheel_scroll_update_component)) { 725 &mouse_wheel_scroll_update_component)) {
719 ComputeScrollLatencyHistograms( 726 ComputeScrollLatencyHistograms(
720 gpu_swap_begin_component, gpu_swap_end_component, latency_component_id_, 727 gpu_swap_begin_component, gpu_swap_end_component, latency_component_id_,
721 latency, is_running_navigation_hint_task); 728 latency, is_running_navigation_hint_task);
722 } 729 }
723 } 730 }
724 731
725 } // namespace content 732 } // namespace content
OLDNEW
« 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