From 415b20956f6d43700ac23561dded7e6a87d2bfbc Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 13 Mar 2016 17:29:44 +0200 Subject: Add links to log and profile files in HTML --- obbenchlib/htmlgen.py | 4 ++++ obbenchlib/obbench.css | 4 ++++ obbenchlib/templates/benchmark.j2 | 14 ++++++++++---- 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 @@  
VmRSS {% endfor %} total
time -  
VmRSS + max
VmRSS {% for row in table_rows %} @@ -28,10 +28,16 @@ {% for step in row.steps %} - {{ '%.1f'|format(step.duration) }} - + {{ '%.1f'|format(step.duration) }} + + prof + + + {{ step.vmrss }} + + log + - {{ step.vmrss }} {% endfor %} {{ '%.1f'|format(row.total) }} {{ '%d'|format(row.vmrss_max) }} -- cgit v1.2.1