summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-08-13 15:16:16 +0300
committerMartin Peres <martin.peres@linux.intel.com>2015-08-14 14:17:05 +0300
commitebed1958a453badbf41eb58ca64c1e3d6b20b2fe (patch)
treeab858e500c9a6744735f52d79cca832e565a8f36
parent8a811b67bd4674692c19aa41549f7ce73725a5e0 (diff)
stats/gen_report: add the commit number to the table view
-rwxr-xr-xstats/gen_report.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/stats/gen_report.py b/stats/gen_report.py
index c4c1236..b2e0209 100755
--- a/stats/gen_report.py
+++ b/stats/gen_report.py
@@ -383,6 +383,7 @@ html_template="""
<table border="1" style="">
<tr>
+ <th>Commit #</th>
<th>Commit SHA1</th>
<th>Geometric mean</th>
{tbl_hdr_benchmarks}
@@ -399,6 +400,7 @@ html_template="""
table_commit_template="""
<tr>
+ <td>{commitNum}</td>
<td><a href="#commit_{sha1}">{sha1}</a></td>
<td bgcolor="{geom_color}">{geom_mean:.2f} ({geom_diff:+.2f} %)</td>
{tbl_res_benchmarks}
@@ -420,6 +422,7 @@ commit_template="""
<p><a href="{patch}">Patch</a> <a href="{compile_log}">Compilation logs</a></p>
<table border="1" style="">
<tr>
+ <th>Commit #</th>
<th>Commit SHA1</th>
<th>Geometric mean</th>
{tbl_hdr_benchmarks}
@@ -466,6 +469,7 @@ for benchmark in benchmarks:
commits_txt = ""
tbl_entries_txt = ""
geom_prev = -1
+i = 0
for commit in commits:
benchs_txt = ""
tbl_res_benchmarks = ""
@@ -501,7 +505,8 @@ for commit in commits:
# generate the html
diff, color = computeDiffAndColor(geom_prev, commit.geom_mean())
geom_prev = commit.geom_mean()
- commit_results = table_commit_template.format(sha1=commit.sha1, geom_mean=commit.geom_mean(),
+ commit_results = table_commit_template.format(commitNum=i, sha1=commit.sha1,
+ geom_mean=commit.geom_mean(),
geom_diff=diff, geom_color=color,
tbl_res_benchmarks=tbl_res_benchmarks)
tbl_entries_txt += commit_results
@@ -512,6 +517,7 @@ for commit in commits:
tbl_hdr_benchmarks=tbl_hdr_benchmarks,
commit_results=commit_results,
patch=commit.patch)
+ i += 1
# Generate the final html file
html = html_template.format(run_name=args.log_folder,