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

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

Issue 2954473002: Record accuracy of expected queueing time metric. (Closed)
Patch Set: Set trace ID in test. 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 | « no previous file | content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc » ('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 b6823be8a92a165d39ac35818f6c1853030213ef..c73061541bd58dbda453d4085d1c73c5ee948c73 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
@@ -75,6 +75,67 @@ void AddLatencyInfoComponentIds(LatencyInfo* latency,
}
}
+void RecordEQTAccuracy(base::TimeDelta queueing_time,
+ base::TimeDelta expected_queueing_time) {
+ float expected_queueing_time_ms = expected_queueing_time.InMillisecondsF();
+
+ if (expected_queueing_time_ms < 10) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_LessThan.10ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms < 150) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_LessThan.150ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms < 300) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_LessThan.300ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms < 450) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_LessThan.450ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms > 10) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_GreaterThan.10ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms > 150) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_GreaterThan.150ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms > 300) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_GreaterThan.300ms",
+ queueing_time);
+ }
+
+ if (expected_queueing_time_ms > 450) {
+ UMA_HISTOGRAM_TIMES(
+ "RendererScheduler."
+ "QueueingDurationWhenExpectedQueueingTime_GreaterThan.450ms",
+ queueing_time);
+ }
+}
+
} // namespace
RenderWidgetHostLatencyTracker::RenderWidgetHostLatencyTracker()
@@ -167,6 +228,10 @@ void RenderWidgetHostLatencyTracker::ComputeInputLatencyHistograms(
UMA_HISTOGRAM_INPUT_LATENCY_MILLISECONDS(
"Event.Latency.QueueingTime." + event_name + default_action_status,
rwh_component, main_component);
+
+ RecordEQTAccuracy(
+ main_component.last_event_time - rwh_component.first_event_time,
+ latency.expected_queueing_time_on_dispatch());
}
}
« no previous file with comments | « no previous file | content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698