summaryrefslogtreecommitdiff
path: root/tools/parsebench.py
diff options
context:
space:
mode:
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>"