| OLD | NEW |
| 1 ''' | 1 ''' |
| 2 Created on May 16, 2011 | 2 Created on May 16, 2011 |
| 3 | 3 |
| 4 @author: bungeman | 4 @author: bungeman |
| 5 ''' | 5 ''' |
| 6 import bench_util | 6 import bench_util |
| 7 import getopt | 7 import getopt |
| 8 import httplib | 8 import httplib |
| 9 import itertools | 9 import itertools |
| 10 import json | 10 import json |
| 11 import os | 11 import os |
| 12 import re | 12 import re |
| 13 import sys | 13 import sys |
| 14 import urllib | 14 import urllib |
| 15 import urllib2 | 15 import urllib2 |
| 16 import xml.sax.saxutils | 16 import xml.sax.saxutils |
| 17 | 17 |
| 18 # We throw out any measurement outside this range, and log a warning. | 18 # We throw out any measurement outside this range, and log a warning. |
| 19 MIN_REASONABLE_TIME = 0 | 19 MIN_REASONABLE_TIME = 0 |
| 20 MAX_REASONABLE_TIME = 99999 | 20 MAX_REASONABLE_TIME = 99999 |
| 21 | 21 |
| 22 # Constants for prefixes in output title used in buildbot. | 22 # Constants for prefixes in output title used in buildbot. |
| 23 TITLE_PREAMBLE = 'Bench_Performance_for_Skia_' | 23 TITLE_PREAMBLE = 'Bench_Performance_for_Skia_' |
| 24 TITLE_PREAMBLE_LENGTH = len(TITLE_PREAMBLE) | 24 TITLE_PREAMBLE_LENGTH = len(TITLE_PREAMBLE) |
| 25 | 25 |
| 26 # Number of data points to send to appengine at once. | 26 # Number of data points to send to appengine at once. |
| 27 DATA_POINT_BATCHSIZE = 25 | 27 DATA_POINT_BATCHSIZE = 66 |
| 28 | 28 |
| 29 def grouper(n, iterable): | 29 def grouper(n, iterable): |
| 30 """Groups list into list of lists for a given size. See itertools doc: | 30 """Groups list into list of lists for a given size. See itertools doc: |
| 31 http://docs.python.org/2/library/itertools.html#module-itertools | 31 http://docs.python.org/2/library/itertools.html#module-itertools |
| 32 """ | 32 """ |
| 33 args = [iter(iterable)] * n | 33 args = [iter(iterable)] * n |
| 34 return [[n for n in t if n] for t in itertools.izip_longest(*args)] | 34 return [[n for n in t if n] for t in itertools.izip_longest(*args)] |
| 35 | 35 |
| 36 | 36 |
| 37 def usage(): | 37 def usage(): |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 print '<a id="rev_link" xlink:href="" target="_top">' | 1040 print '<a id="rev_link" xlink:href="" target="_top">' |
| 1041 print '<text id="revision" x="0" y=%s style="' % qa(font_size*2) | 1041 print '<text id="revision" x="0" y=%s style="' % qa(font_size*2) |
| 1042 print 'font-size: %s; ' % qe(font_size) | 1042 print 'font-size: %s; ' % qe(font_size) |
| 1043 print 'stroke: #0000dd; text-decoration: underline; ' | 1043 print 'stroke: #0000dd; text-decoration: underline; ' |
| 1044 print '"> </text></a>' | 1044 print '"> </text></a>' |
| 1045 | 1045 |
| 1046 print '</svg>' | 1046 print '</svg>' |
| 1047 | 1047 |
| 1048 if __name__ == "__main__": | 1048 if __name__ == "__main__": |
| 1049 main() | 1049 main() |
| OLD | NEW |