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

Side by Side Diff: tools/perf/measurements/smoothness.py

Issue 68203031: telemetry: Add tough scheduling cases (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Full test set. Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from metrics import smoothness 5 from metrics import smoothness
6 from metrics import timeline 6 from metrics import timeline
7 from telemetry.page import page_test 7 from telemetry.page import page_test
8 from telemetry.page import page_measurement 8 from telemetry.page import page_measurement
9 9
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 self._metric.Stop(page, tab) 52 self._metric.Stop(page, tab)
53 53
54 def MeasurePage(self, page, tab, results): 54 def MeasurePage(self, page, tab, results):
55 self._metric.AddResults(tab, results) 55 self._metric.AddResults(tab, results)
56 56
57 if tab.browser.platform.IsRawDisplayFrameRateSupported(): 57 if tab.browser.platform.IsRawDisplayFrameRateSupported():
58 for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements(): 58 for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements():
59 if r.value is None: 59 if r.value is None:
60 raise MissingDisplayFrameRateError(r.name) 60 raise MissingDisplayFrameRateError(r.name)
61 results.Add(r.name, r.unit, r.value) 61 results.Add(r.name, r.unit, r.value)
62
63 class SmoothnessWithRestart(Smoothness):
64 def NeedsBrowserRestartAfterEachRun(self, browser):
65 return True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698