Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: bench/bench_graph_svg.py

Issue 12703008: Cut data point upload batch size to 25. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = 100 27 DATA_POINT_BATCHSIZE = 25
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
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()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698