| Index: content/renderer/input/render_widget_input_handler.cc
|
| diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
|
| index 3ea242a1e554f38c8684921c04c07fb6751961eb..3a10c4a77982ddfd111fd5ffb27ed24ac48fce84 100644
|
| --- a/content/renderer/input/render_widget_input_handler.cc
|
| +++ b/content/renderer/input/render_widget_input_handler.cc
|
| @@ -129,6 +129,7 @@ void LogPassiveEventListenersUma(WebInputEventResult result,
|
| PASSIVE_LISTENER_UMA_ENUM_CANCELABLE,
|
| PASSIVE_LISTENER_UMA_ENUM_CANCELABLE_AND_CANCELED,
|
| PASSIVE_LISTENER_UMA_ENUM_FORCED_NON_BLOCKING_DUE_TO_FLING,
|
| + PASSIVE_LISTENER_UMA_ENUM_FORCED_NON_BLOCKING_DUE_TO_MAIN_THREAD_RESPONSIVENESS,
|
| PASSIVE_LISTENER_UMA_ENUM_COUNT
|
| };
|
|
|
| @@ -137,6 +138,10 @@ void LogPassiveEventListenersUma(WebInputEventResult result,
|
| case WebInputEvent::ListenersForcedNonBlockingDueToFling:
|
| enum_value = PASSIVE_LISTENER_UMA_ENUM_FORCED_NON_BLOCKING_DUE_TO_FLING;
|
| break;
|
| + case WebInputEvent::ListenersForcedNonBlockingDueToMainThreadResponsiveness:
|
| + enum_value =
|
| + PASSIVE_LISTENER_UMA_ENUM_FORCED_NON_BLOCKING_DUE_TO_MAIN_THREAD_RESPONSIVENESS;
|
| + break;
|
| case WebInputEvent::ListenersNonBlockingPassive:
|
| enum_value = PASSIVE_LISTENER_UMA_ENUM_PASSIVE;
|
| break;
|
| @@ -171,6 +176,14 @@ void LogPassiveEventListenersUma(WebInputEventResult result,
|
| UMA_HISTOGRAM_CUSTOM_COUNTS(
|
| "Event.PassiveListeners.ForcedNonBlockingLatencyDueToFling",
|
| GetEventLatencyMicros(event_timestamp, now), 1, 10000000, 100);
|
| + } else if (
|
| + enum_value ==
|
| + PASSIVE_LISTENER_UMA_ENUM_FORCED_NON_BLOCKING_DUE_TO_MAIN_THREAD_RESPONSIVENESS) {
|
| + base::TimeTicks now = base::TimeTicks::Now();
|
| + UMA_HISTOGRAM_CUSTOM_COUNTS(
|
| + "Event.PassiveListeners."
|
| + "ForcedNonBlockingLatencyDueToUnresponsiveMainThread",
|
| + GetEventLatencyMicros(event_timestamp, now), 1, 10000000, 100);
|
| }
|
| }
|
| }
|
|
|