diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2015-07-23 14:11:29 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2015-07-23 14:11:29 +0300 |
commit | ed690c00f1460589580c662d808d79e0c494a86b (patch) | |
tree | 5ae6f8e8ea1414e2dfd0fe1960fbfbdda6a765c0 /stats | |
parent | 05d6d05cc5588d0083668808ed1ba85978b35091 (diff) |
stats/gen_report: Have the trend show a cumulative difference
Diffstat (limited to 'stats')
-rwxr-xr-x | stats/gen_report.py | 4 |
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 |