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

Issue 12438022: telemetry: Update Android frame latency metrics (Closed)

Created:
7 years, 9 months ago by Sami
Modified:
7 years, 9 months ago
Reviewers:
Tom Hudson, bulach
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Visibility:
Public.

Description

telemetry: Update Android frame latency metrics Update the Android SurfaceFlinger-based frame latency metrics to match the numbers that are tracked downstream. The new method records the time of the most recent vsync when a new frame is submitted to SurfaceFlinger. These frame timestamps are used to derive the following animation quality indicators: 1. Average frame rate (avg_surface_fps). 2. Maximum time between frames (max_frame_delay) in number elapsed vsync periods. 3. Number of "janks" or dropped frames during the benchmark (jank_count). This is calculated by first taking the frame durations: duration[i] = timestamp[i + 1] - timestamp[i] and then seeing when the duration changes: changes[i] = duration[i + 1] - duration[i] Every time the frame duration increases by an additional vsync interval multiple we count the frame as jank: jank_count = sum{1 | max(0, round(changes[i] / vsync_interval)) > 0} BUG=https://b/8364918 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189006

Patch Set 1 #

Total comments: 2

Patch Set 2 : Extract duplicate code into function. #

Patch Set 3 : Remove redundant lists. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -54 lines) Patch
M build/android/pylib/surface_stats_collector.py View 1 2 5 chunks +51 lines, -54 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sami
This makes our jank metrics comparable with downstream. PTAL.
7 years, 9 months ago (2013-03-18 18:17:05 UTC) #1
bulach
lgtm, thanks! small suggestion below, feel free to ignore if it doesn't improve... also, nit: ...
7 years, 9 months ago (2013-03-18 18:45:03 UTC) #2
Sami
https://codereview.chromium.org/12438022/diff/1/build/android/pylib/surface_stats_collector.py File build/android/pylib/surface_stats_collector.py (right): https://codereview.chromium.org/12438022/diff/1/build/android/pylib/surface_stats_collector.py#newcode87 build/android/pylib/surface_stats_collector.py:87: for change in length_changes] That's much more readable, thanks!
7 years, 9 months ago (2013-03-18 19:03:15 UTC) #3
Tom Hudson
The Android metrics I'm spotting in bug reports are: Average Number of Jankiness 1.7000 Max ...
7 years, 9 months ago (2013-03-19 09:27:51 UTC) #4
Sami
On 2013/03/19 09:27:51, Tom Hudson wrote: > The Android metrics I'm spotting in bug reports ...
7 years, 9 months ago (2013-03-19 10:55:44 UTC) #5
Tom Hudson
On 2013/03/19 10:55:44, Sami wrote: > It's not entirely clear from looking at the downstream ...
7 years, 9 months ago (2013-03-19 11:02:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12438022/9001
7 years, 9 months ago (2013-03-19 11:27:30 UTC) #7
commit-bot: I haz the power
7 years, 9 months ago (2013-03-19 13:41:10 UTC) #8
Message was sent while issue was closed.
Change committed as 189006

Powered by Google App Engine
This is Rietveld 408576698