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

Unified Diff: ui/latency/latency_tracker.cc

Issue 2888153002: Add TimeToScrollUpdateSwapBegin2 to UKM (Closed)
Patch Set: Rename the test function Created 3 years, 7 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 | « ui/latency/latency_tracker.h ('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 d402506dcf645450b38a47f5a8d76a6935d20adc..494a89cc4b26957bdaeaffea6ba93763d714891a 100644
--- a/ui/latency/latency_tracker.cc
+++ b/ui/latency/latency_tracker.cc
@@ -120,6 +120,15 @@ void LatencyTracker::ReportRapporScrollLatency(
// Mus.
}
+void LatencyTracker::ReportUkmScrollLatency(
+ const std::string& event_name,
+ const std::string& metric_name,
+ const LatencyInfo::LatencyComponent& start_component,
+ const LatencyInfo::LatencyComponent& end_component) {
+ // TODO(mfomitchev): crbug.com/717629: Make RAPPOR or UKM reporting work with
+ // Mus.
+}
+
void LatencyTracker::ComputeEndToEndLatencyHistograms(
const ui::LatencyInfo::LatencyComponent& gpu_swap_begin_component,
const ui::LatencyInfo::LatencyComponent& gpu_swap_end_component,
@@ -170,6 +179,9 @@ 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);
}
} else if (latency.FindLatency(ui::INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 0,
&original_component)) {
« no previous file with comments | « ui/latency/latency_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698