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

Issue 1092803002: telemetry: Remove gaps between interactions when calculating smoothness metrics. (Closed)

Created:
5 years, 8 months ago by vmiura
Modified:
5 years, 8 months ago
Reviewers:
nednguyen, mithro-old
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

telemetry: Remove gaps between interactions when calculating smoothness metrics. BUG=477757 Committed: https://crrev.com/260051d32fa1d3218a8e8a9ce87cc81d16b0b4ff Cr-Commit-Position: refs/heads/master@{#325583}

Patch Set 1 #

Patch Set 2 : Add unittest. Change new method to static. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -5 lines) Patch
M tools/telemetry/telemetry/web_perf/metrics/smoothness.py View 1 2 chunks +16 lines, -1 line 2 comments Download
M tools/telemetry/telemetry/web_perf/metrics/smoothness_unittest.py View 1 1 chunk +16 lines, -4 lines 2 comments Download

Messages

Total messages: 15 (3 generated)
vmiura
PTAL
5 years, 8 months ago (2015-04-16 21:32:39 UTC) #2
nednguyen
Can you add some tests that would catch the failure without this patch?
5 years, 8 months ago (2015-04-16 22:06:57 UTC) #3
vmiura
On 2015/04/16 22:06:57, nednguyen wrote: > Can you add some tests that would catch the ...
5 years, 8 months ago (2015-04-16 22:30:52 UTC) #4
nednguyen
On 2015/04/16 22:30:52, vmiura wrote: > On 2015/04/16 22:06:57, nednguyen wrote: > > Can you ...
5 years, 8 months ago (2015-04-16 22:34:47 UTC) #5
vmiura
On 2015/04/16 22:34:47, nednguyen wrote: > On 2015/04/16 22:30:52, vmiura wrote: > > On 2015/04/16 ...
5 years, 8 months ago (2015-04-16 23:11:19 UTC) #6
nednguyen
lgtm
5 years, 8 months ago (2015-04-17 01:39:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1092803002/20001
5 years, 8 months ago (2015-04-17 01:40:34 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-17 02:00:36 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/260051d32fa1d3218a8e8a9ce87cc81d16b0b4ff Cr-Commit-Position: refs/heads/master@{#325583}
5 years, 8 months ago (2015-04-17 02:01:24 UTC) #11
mithro-old
Hi vmiura, I know this patch has been submitted but I had two questions about ...
5 years, 8 months ago (2015-04-21 03:45:59 UTC) #13
vmiura
https://codereview.chromium.org/1092803002/diff/20001/tools/telemetry/telemetry/web_perf/metrics/smoothness.py File tools/telemetry/telemetry/web_perf/metrics/smoothness.py (right): https://codereview.chromium.org/1092803002/diff/20001/tools/telemetry/telemetry/web_perf/metrics/smoothness.py#newcode111 tools/telemetry/telemetry/web_perf/metrics/smoothness.py:111: if self._HasEnoughFrames(stats.frame_timestamps): On 2015/04/21 03:45:58, mithro wrote: > Why ...
5 years, 8 months ago (2015-04-21 22:04:46 UTC) #14
nednguyen
5 years, 8 months ago (2015-04-21 22:11:16 UTC) #15
Message was sent while issue was closed.
On 2015/04/21 22:04:46, vmiura wrote:
>
https://codereview.chromium.org/1092803002/diff/20001/tools/telemetry/telemet...
> File tools/telemetry/telemetry/web_perf/metrics/smoothness.py (right):
> 
>
https://codereview.chromium.org/1092803002/diff/20001/tools/telemetry/telemet...
> tools/telemetry/telemetry/web_perf/metrics/smoothness.py:111: if
> self._HasEnoughFrames(stats.frame_timestamps):
> On 2015/04/21 03:45:58, mithro wrote:
> > Why does this metric use stats.frame_timestamps rather than
stats.frame_times?
> > Looking at your unittest the stats.frame_times contains the already
calculated
> > value you need?
> 
> I think you're right, it looks like these metrics could be computed from
> frame_times.
> 
>
https://codereview.chromium.org/1092803002/diff/20001/tools/telemetry/telemet...
> File tools/telemetry/telemetry/web_perf/metrics/smoothness_unittest.py
(right):
> 
>
https://codereview.chromium.org/1092803002/diff/20001/tools/telemetry/telemet...
> tools/telemetry/telemetry/web_perf/metrics/smoothness_unittest.py:63:
> frame_times=[[10], [10, 10]])
> On 2015/04/21 03:45:58, mithro wrote:
> > I can't see anything in _ComputeSurfaceFlingerMetric which stats.uses
> > frame_times at the moment, what am I missing?
> 
> Nothing uses them.  This change is just in the interest of making frame_times
> consistent with the changes to frame_timestamps.  It seems worthwhile to
remove
> frame_timestamps from RenderingStats.

+1. That would be a good simplification of the smoothness measurement.

Powered by Google App Engine
This is Rietveld 408576698