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

Unified Diff: tools/perf/metrics/rendering_stats.py

Issue 160683003: Collect touch scroll latency for JS driven scroll (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698