summaryrefslogtreecommitdiff
path: root/stats
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-07-23 14:11:29 +0300
committerMartin Peres <martin.peres@linux.intel.com>2015-07-23 14:11:29 +0300
commited690c00f1460589580c662d808d79e0c494a86b (patch)
tree5ae6f8e8ea1414e2dfd0fe1960fbfbdda6a765c0 /stats
parent05d6d05cc5588d0083668808ed1ba85978b35091 (diff)
stats/gen_report: Have the trend show a cumulative difference
Diffstat (limited to 'stats')
-rwxr-xr-xstats/gen_report.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/stats/gen_report.py b/stats/gen_report.py
index 8f24814..77a60c7 100755
--- a/stats/gen_report.py
+++ b/stats/gen_report.py
@@ -138,6 +138,7 @@ def getResultsBenchmarkDiffs(benchmark):
# Compute a report per application
i = 0
+ totalDiff = 0
for commit in commits:
for result in commit.results:
if result.benchmark != benchmark:
@@ -151,7 +152,8 @@ def getResultsBenchmarkDiffs(benchmark):
diff = 0
prevValue = value
- results.append([i, diff])
+ totalDiff += diff
+ results.append([i, totalDiff])
i = i + 1
return results