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

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

Issue 2280383002: Remove MPArch.IIR_InputEventDelta (Closed)
Patch Set: Created 4 years, 4 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 | « content/browser/renderer_host/input/input_router_impl.h ('k') | 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/input_router_impl.cc
diff --git a/content/browser/renderer_host/input/input_router_impl.cc b/content/browser/renderer_host/input/input_router_impl.cc
index 61a0cfd53728e44e367c948dccd2ea3483fed937..2b33c01c37f7d6769e0b1b0f9d1c3e1c9f7af6c8 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -432,10 +432,8 @@ bool InputRouterImpl::OfferToRenderer(const WebInputEvent& input_event,
// Ack messages for ignored ack event types should never be sent by the
// renderer. Consequently, such event types should not affect event time
// or in-flight event count metrics.
- if (dispatch_type == InputEventDispatchType::DISPATCH_TYPE_BLOCKING) {
- input_event_start_time_ = TimeTicks::Now();
+ if (dispatch_type == InputEventDispatchType::DISPATCH_TYPE_BLOCKING)
client_->IncrementInFlightEventCount();
- }
return true;
}
return false;
@@ -443,9 +441,6 @@ bool InputRouterImpl::OfferToRenderer(const WebInputEvent& input_event,
void InputRouterImpl::OnInputEventAck(const InputEventAck& ack) {
client_->DecrementInFlightEventCount();
- // Log the time delta for processing an input event.
- TimeDelta delta = TimeTicks::Now() - input_event_start_time_;
- UMA_HISTOGRAM_TIMES("MPArch.IIR_InputEventDelta", delta);
if (ack.overscroll) {
DCHECK(ack.type == WebInputEvent::MouseWheel ||
« no previous file with comments | « content/browser/renderer_host/input/input_router_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698