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

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

Issue 25284005: cc: Add best_record_time to rendering stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 3 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/metrics/gpu_rendering_stats.py ('k') | no next file » | 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 b262c89450b6c080c7f69c6e4a583272b095ae84..40b9e434411e3a31b96d0f4fa32418f2999768f0 100644
--- a/tools/perf/metrics/smoothness.py
+++ b/tools/perf/metrics/smoothness.py
@@ -87,7 +87,11 @@ def Average(numerator, denominator, scale = None, precision = None):
avg = numerator_total / denominator_total
if scale:
avg *= scale
- if precision:
+ if precision == None:
+ pass
+ elif precision == 0:
+ avg = int(avg)
+ else:
avg = round(avg, precision)
return avg
« no previous file with comments | « tools/perf/metrics/gpu_rendering_stats.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698