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

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

Issue 185953004: Add some statistics to the monsoon profile run (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to apply upon latest trunk Created 6 years, 9 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 | « tools/perf/benchmarks/peacekeeper.py ('k') | tools/perf/metrics/statistics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/smoothness.py
diff --git a/tools/perf/metrics/smoothness.py b/tools/perf/metrics/smoothness.py
index 50756e9a11a08ea9f8d53dbd0457c4cb8c11d3c4..5c1cc5c3db56d6dbb2cc6b9f89d75cfe20bf16b2 100644
--- a/tools/perf/metrics/smoothness.py
+++ b/tools/perf/metrics/smoothness.py
@@ -4,10 +4,10 @@
from metrics import timeline_based_metric
from metrics import rendering_stats
-from metrics import statistics
from telemetry.core.timeline import bounds
from telemetry.page import page_measurement
from telemetry.page.perf_tests_helper import FlattenList
+from telemetry.util import statistics
class NotEnoughFramesError(page_measurement.MeasurementFailure):
@@ -34,8 +34,7 @@ class SmoothnessMetric(timeline_based_metric.TimelineBasedMetric):
renderer_process, model.browser_process, [time_bounds])
if stats.mouse_wheel_scroll_latency:
mean_mouse_wheel_scroll_latency = statistics.ArithmeticMean(
- stats.mouse_wheel_scroll_latency,
- len(stats.mouse_wheel_scroll_latency))
+ stats.mouse_wheel_scroll_latency)
mouse_wheel_scroll_latency_discrepancy = statistics.DurationsDiscrepancy(
stats.mouse_wheel_scroll_latency)
results.Add('mean_mouse_wheel_scroll_latency', 'ms',
@@ -45,8 +44,7 @@ class SmoothnessMetric(timeline_based_metric.TimelineBasedMetric):
if stats.touch_scroll_latency:
mean_touch_scroll_latency = statistics.ArithmeticMean(
- stats.touch_scroll_latency,
- len(stats.touch_scroll_latency))
+ stats.touch_scroll_latency)
touch_scroll_latency_discrepancy = statistics.DurationsDiscrepancy(
stats.touch_scroll_latency)
results.Add('mean_touch_scroll_latency', 'ms',
@@ -56,8 +54,7 @@ class SmoothnessMetric(timeline_based_metric.TimelineBasedMetric):
if stats.js_touch_scroll_latency:
mean_js_touch_scroll_latency = statistics.ArithmeticMean(
- stats.js_touch_scroll_latency,
- len(stats.js_touch_scroll_latency))
+ stats.js_touch_scroll_latency)
js_touch_scroll_latency_discrepancy = statistics.DurationsDiscrepancy(
stats.js_touch_scroll_latency)
results.Add('mean_js_touch_scroll_latency', 'ms',
@@ -70,8 +67,7 @@ class SmoothnessMetric(timeline_based_metric.TimelineBasedMetric):
results.Add('frame_times', 'ms', frame_times)
# Arithmetic mean of frame times.
- mean_frame_time = statistics.ArithmeticMean(frame_times,
- len(frame_times))
+ mean_frame_time = statistics.ArithmeticMean(frame_times)
results.Add('mean_frame_time', 'ms', round(mean_frame_time, 3))
# Absolute discrepancy of frame time stamps.
« no previous file with comments | « tools/perf/benchmarks/peacekeeper.py ('k') | tools/perf/metrics/statistics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698