Lines Matching refs:options
49 (options, args) = parser.parse_args()
51 options.generateHtml = detectHtmlOutputType(options.format)
52 if options.metric not in metrix_table:
53 options.metric = "gmean"
54 if options.metric.endswith("%") or options.metric.endswith("$"):
55 options.calc_relatives = False
56 options.calc_cr = False
57 if options.columns:
58 options.columns = [s.strip().replace("\\n", "\n") for s in options.columns.split(",")]
60 if options.regressions:
61 assert not options.progress_mode, 'unsupported mode'
76 options.regressions = [parseRegressionColumn(s) for s in options.regressions.split(',')]
96 if options.filter:
97 expr = re.compile(options.filter)
99 if options.match:
114 if options.regressions is None:
115 reference = -1 if options.progress_mode else 0
116 options.regressions = [(i, reference, False, True) for i in range(1, len(test_sets))]
118 for link in options.regressions:
127 if options.match:
128 reg = re.compile(options.match)
129 name_extractor = lambda name: reg.sub(options.match_replace, str(name))
134 if options.module:
135 name = options.module + "::" + name
141 getter = metrix_table[options.metric][1]
142 getter_score = metrix_table["score"][1] if options.calc_score else None
143 getter_p = metrix_table[options.metric + "%"][1] if options.calc_relatives else None
144 getter_cr = metrix_table[options.metric + "$"][1] if options.calc_cr else None
145 tbl = table(metrix_table[options.metric][0])
150 tbl.newColumn(str(i), getSetName(test_sets[i], i, options.columns, False), align = "center")
153 for link in options.regressions:
158 current = getSetName(current_set, i, options.columns)
161 reference = getSetName(reference_set, ref, options.columns)
166 if options.calc_cr:
168 if options.calc_relatives:
170 if options.calc_score:
181 if not options.showall:
195 if options.intersect_logs:
204 val = getter(case, cases[0], options.units)
207 tbl.newCell(str(i), formatValue(val, options.metric, options.units), val)
210 for link in options.regressions:
217 if options.calc_relatives:
219 if options.calc_cr:
221 if options.calc_score:
229 if options.calc_relatives:
231 if options.calc_cr:
233 if options.calc_score:
236 val = getter(case, cases[0], options.units)
242 return fn(case, r, options.units)
243 … valp = getRegression(getter_p) if options.calc_relatives or options.progress_mode else None
244 valcr = getRegression(getter_cr) if options.calc_cr else None
245 val_score = getRegression(getter_score) if options.calc_score else None
256 … tbl.newCell(str(i), formatValue(val, options.metric, options.units), val, color=color)
260 val = getter(r, cases[0], options.units)
261 … tbl.newCell(str(reference), formatValue(val, options.metric, options.units), val, color=color)
262 if options.calc_relatives:
264 if options.calc_cr:
266 if options.calc_score:
272 if options.regressionsOnly:
274 for i in range(1, len(options.regressions) + 1):
276 if val is not None and val < float(options.regressionsOnly):
282 if options.generateHtml:
283 if options.format == "moinwiki":
292 if options.regressionsOnly: