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

Unified Diff: ui/latency/latency_tracker.cc

Issue 2924943004: Add ScrollBegin.Touch/Wheel Event to UKM (Closed)
Patch Set: Rebase & edit UKM summary Created 3 years, 6 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 | « tools/metrics/ukm/ukm.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/latency/latency_tracker.cc
diff --git a/ui/latency/latency_tracker.cc b/ui/latency/latency_tracker.cc
index 494a89cc4b26957bdaeaffea6ba93763d714891a..5be7a26c79eecf59515e05f9245374a3906a8fae 100644
--- a/ui/latency/latency_tracker.cc
+++ b/ui/latency/latency_tracker.cc
@@ -159,6 +159,10 @@ void LatencyTracker::ComputeEndToEndLatencyHistograms(
".TimeToScrollUpdateSwapBegin2",
original_component, gpu_swap_begin_component);
+ ReportUkmScrollLatency("Event.ScrollBegin." + input_modality,
+ "TimeToScrollUpdateSwapBegin", original_component,
+ gpu_swap_begin_component);
+
// TODO(lanwei): Will remove them when M56 is stable, see
// https://crbug.com/669618.
UMA_HISTOGRAM_INPUT_LATENCY_HIGH_RESOLUTION_MICROSECONDS(
@@ -179,6 +183,7 @@ void LatencyTracker::ComputeEndToEndLatencyHistograms(
ReportRapporScrollLatency(
"Event.Latency.ScrollUpdate.Touch.TimeToScrollUpdateSwapBegin2",
original_component, gpu_swap_begin_component);
+
ReportUkmScrollLatency("Event.ScrollUpdate.Touch",
"TimeToScrollUpdateSwapBegin", original_component,
gpu_swap_begin_component);
« no previous file with comments | « tools/metrics/ukm/ukm.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698