Commit 7ff11487 authored by miletus@chromium.org's avatar miletus@chromium.org

Collect touch scroll latency for JS driven scroll

tough_scheduling_cases have several cases touch_handler_scrolling.html?*
that use touch move handler to scroll the page. This CL adds the touch
scroll latency collection for those cases.

BUG=246034
TEST=smoothness test on touch_scheduling_cases.touch_handler_scrolling.html?*
     now show mean_touch_scroll_latency.

Review URL: https://codereview.chromium.org/160683003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250861 0039d316-1c4b-4281-b951-d872f2087c98
parent a17b1c43
......@@ -19,10 +19,10 @@ def GetScrollInputLatencyEvents(browser_process, timeline_range):
"""Get scroll events' LatencyInfo from the browser process's trace buffer
that are within the timeline_range.
Scroll events (MouseWheel or GestureScrollUpdate) dump their LatencyInfo
into trace buffer as async trace event with name "InputLatency". The trace
event has a memeber 'step' containing its event type and a memeber 'data'
containing its latency history.
Scroll events (MouseWheel, GestureScrollUpdate or JS scroll on TouchMove)
dump their LatencyInfo into trace buffer as async trace event with name
"InputLatency". The trace event has a memeber 'step' containing its event
type and a memeber 'data' containing its latency history.
"""
mouse_wheel_events = []
......@@ -40,6 +40,8 @@ def GetScrollInputLatencyEvents(browser_process, timeline_range):
mouse_wheel_events.append(ss)
elif ss.args['step'] == 'GestureScrollUpdate':
touch_scroll_events.append(ss)
elif ss.args['step'] == 'TouchMove':
touch_scroll_events.append(ss)
return (mouse_wheel_events, touch_scroll_events)
def ComputeMouseWheelScrollLatency(mouse_wheel_events):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment