Index: tools/perf/metrics/rendering_stats.py |
diff --git a/tools/perf/metrics/rendering_stats.py b/tools/perf/metrics/rendering_stats.py |
index 6ae82b290b9fd56e945c9d3e0b753fdd256953d8..fd9ee8da62905789182c34772455feb53f548838 100644 |
--- a/tools/perf/metrics/rendering_stats.py |
+++ b/tools/perf/metrics/rendering_stats.py |
@@ -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): |