Records bench graph scale information so we can calculate back the bench values.
authorbensong@google.com <bensong@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 30 Aug 2012 18:19:02 +0000 (18:19 +0000)
committerbensong@google.com <bensong@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 30 Aug 2012 18:19:02 +0000 (18:19 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@5352 2bbb7eff-a529-9590-31e7-b0007b416f81

bench/bench_graph_svg.py

index a9e451c558cece569a02320eb51802cece384a5f..50cba552659ca8d83180436e3ec41b72fbbcfd7f 100644 (file)
@@ -688,6 +688,8 @@ def output_svg(lines, regressions, requested_width, requested_height):
         """Converts a time to a vertical display position."""
         return pic_height + ch(y - global_min_y)
     
+    print '<!--Picture height %.2f corresponds to bench value %.2f.-->' % (
+        pic_height, h)
     print '<svg',
     print 'width=%s' % qa(str(pic_width)+'px')
     print 'height=%s' % qa(str(pic_height)+'px')