summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-03-13 17:29:44 +0200
committerLars Wirzenius <liw@liw.fi>2016-03-13 17:29:44 +0200
commit415b20956f6d43700ac23561dded7e6a87d2bfbc (patch)
treeb3918c47993ae7a6aa21e9d8ef78ee64b8aae405
parentad95b439e7b48ef459f68fbec34ac7c4b459ef2e (diff)
downloadobnam-benchmarks-415b20956f6d43700ac23561dded7e6a87d2bfbc.tar.gz
Add links to log and profile files in HTML
-rw-r--r--obbenchlib/htmlgen.py4
-rw-r--r--obbenchlib/obbench.css4
-rw-r--r--obbenchlib/templates/benchmark.j214
3 files changed, 18 insertions, 4 deletions
diff --git a/obbenchlib/htmlgen.py b/obbenchlib/htmlgen.py
index 5a67cfc..8efab12 100644
--- a/obbenchlib/htmlgen.py
+++ b/obbenchlib/htmlgen.py
@@ -206,6 +206,10 @@ class BenchmarkPage(HtmlPage):
row['steps'].append({
'filename_txt': '{}_{}.txt'.format(
result['result_id'], i),
+ 'filename_prof': '{}_{}.prof'.format(
+ result['result_id'], i),
+ 'filename_log': '{}_{}.log'.format(
+ result['result_id'], i),
'duration': step[step_name]['duration'],
'vmrss': vmrss,
})
diff --git a/obbenchlib/obbench.css b/obbenchlib/obbench.css
index 4e35607..ab4d408 100644
--- a/obbenchlib/obbench.css
+++ b/obbenchlib/obbench.css
@@ -25,3 +25,7 @@ td.commitid {
td.commitmsg {
// max-width: 30em;
}
+
+span.links {
+ font-size: 70%;
+}
diff --git a/obbenchlib/templates/benchmark.j2 b/obbenchlib/templates/benchmark.j2
index 7666416..846af70 100644
--- a/obbenchlib/templates/benchmark.j2
+++ b/obbenchlib/templates/benchmark.j2
@@ -19,7 +19,7 @@
<th>&nbsp;<br>VmRSS</th>
{% endfor %}
<th>total<br>time</th>
- <th>&nbsp;<br>VmRSS</th>
+ <th>max<br>VmRSS</th>
</tr>
{% for row in table_rows %}
<tr>
@@ -28,10 +28,16 @@
{% for step in row.steps %}
<td>
<a href="{{ step.filename_txt }}">
- {{ '%.1f'|format(step.duration) }}
- </a>
+ {{ '%.1f'|format(step.duration) }}</a>
+ <span class="links">
+ <a href="{{ step.filename_prof }}">prof</a>
+ </span>
+ </td>
+ <td>{{ step.vmrss }}
+ <span class="links">
+ <a href="{{ step.filename_log }}">log</a>
+ </span>
</td>
- <td>{{ step.vmrss }}</td>
{% endfor %}
<td>{{ '%.1f'|format(row.total) }}</td>
<td>{{ '%d'|format(row.vmrss_max) }}</td>