Chromium Code Reviews| 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..ce3d9347b73378cc72cf877e2a0daa6bc56e9ce6 100644 |
| --- a/content/renderer/input/render_widget_input_handler.cc |
| +++ b/content/renderer/input/render_widget_input_handler.cc |
| @@ -129,6 +129,8 @@ 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, |
| + // TODO - add UMAs. |
|
dtapuska
2016/08/23 16:18:29
Is this TODO still necessary?
tdresser
2016/08/23 17:25:33
Done.
|
| + PASSIVE_LISTENER_UMA_ENUM_FORCED_NON_BLOCKING_DUE_TO_MAIN_THREAD_RESPONSIVENESS, |
| PASSIVE_LISTENER_UMA_ENUM_COUNT |
| }; |
| @@ -137,6 +139,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 +177,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); |
| } |
| } |
| } |