Lines Matching refs:lines
221 lines = {} # {Label:[(x,y)] | x[n] <= x[n+1]}
252 if line_name not in lines:
253 lines[line_name] = []
255 lines[line_name].append((revision, point.time))
257 return lines
259 def bounds(lines):
260 """Finds the bounding rectangle for the lines.
268 for line in lines.itervalues():
277 def create_regressions(lines, start_x, end_x):
284 for label, line in lines.iteritems():
378 def check_expectations(lines, expectations, newest_revision, key_suffix):
388 for line in lines:
392 this_revision, this_bench_value = lines[line][-1]
541 lines = create_lines(allowed_revision_data_points
548 regressions = create_regressions(lines
553 output_xhtml(lines, oldest_revision, newest_revision,
558 write_to_appengine(lines, appengine_url, newest_revision, bot)
561 check_expectations(lines, bench_expectations, newest_revision,
571 def create_select(qualifier, lines, select_id=None):
572 """Output select with options showing lines which qualifier maps to it.
576 for label in lines.keys():
583 print '<select class="lines"',
621 def output_xhtml(lines, oldest_revision, newest_revision, ignored_revision_data_points,
632 output_svg(lines, regressions, requested_width, requested_height)
653 var lines = JSON.parse(selectElem.options[i].value);
654 for (var j = 0; j < lines.length; ++j) {
655 linesObj[lines[j]] = true;
689 var selects = getElementsByClass(document, 'lines', 'select');
719 for label in lines.keys():
747 create_select(lambda l: l.bench, lines, 'benchSelect')
749 create_select(lambda l: l.config, lines)
751 create_select(lambda l: l.time_type, lines)
755 create_select(lambda l: l.settings.get(k, " "), lines)
784 graph lines.</p>
789 <p>Use buttons at left to mark/clear points on the lines for selected
825 def output_svg(lines, regressions, requested_width, requested_height):
828 (global_min_x, _), (global_max_x, global_max_y) = bounds(lines)
939 for line in lines.itervalues():
955 #output the lines
997 # Add a new element to each item in the 'lines' list: the label in string
1000 for label, line in lines.items():