summaryrefslogtreecommitdiff
path: root/tools/parsebench.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2016-11-22 15:28:35 +0100
committerMagnus Ahltorp <map@kth.se>2016-11-22 15:28:35 +0100
commitbc65371739172f05b76a44383147063ca9056297 (patch)
treed8a5878a21d6cfa0af1388ff80881578f3ac9e00 /tools/parsebench.py
parent88cc9feeb5c8838aad8edc0926c82b48eaa00c6c (diff)
parsebench: change from table to div:s
Diffstat (limited to 'tools/parsebench.py')
-rwxr-xr-xtools/parsebench.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/parsebench.py b/tools/parsebench.py
index 067cf65..6897b57 100755
--- a/tools/parsebench.py
+++ b/tools/parsebench.py
@@ -59,7 +59,7 @@ def parse_one_file(filename):
iterations = itertools.groupby(lines, lambda x: x[0])
for (i, iteration) in iterations:
print >>sys.stderr, (i, iteration)
- print "<table style='border-collapse: collapse;'><tr>"
+ sys.stdout.write("<div style='margin-bottom: 1em;'>")
for (_, stage, data) in iteration:
data = list(data)
for (itemn, (item, useconds)) in enumerate(data):
@@ -68,10 +68,10 @@ def parse_one_file(filename):
step = 50 / (len(shades) - 1)
shade = shades[item]
stagen = stageorderdict[stage]
- print "<td style='width: %dpx; padding: 0; background-color: hsl(%d, 90%%, %d%%);' title='%s:%s %d'>" % (int(seconds*scale), stagen * 90, shade * step + 40, stage, item, seconds)
+ print "<div class='element' style='display: inline-block; margin: 0; width: %dpx; padding: 0; background-color: hsl(%d, 90%%, %d%%);' title='%s:%s %d'>" % (int(seconds*scale), stagen * 90, shade * step + 40, stage, item, seconds)
print "&nbsp;"
- print "</td>"
- print "</tr></table>"
+ sys.stdout.write("</div>")
+ sys.stdout.write("</div>")
print "</div>"
print "<div style='height: 30px;'>"
print "</div>"