Lines Matching refs:r
230 for r in results_:
234 os.path.abspath(r.file) == os.path.abspath(s)
241 os.path.abspath(r.file)]) == os.getcwd():
245 if not internal and not r.file.endswith('.h'):
251 os.path.abspath(r.file)]) == os.getcwd():
252 file = os.path.relpath(r.file)
254 file = os.path.abspath(r.file)
256 results.append(r._replace(file=file))
276 for r in results:
277 if all(getattr(r, k) in vs for k, vs in defines):
278 results_.append(r)
283 for r in results:
284 name = tuple(getattr(r, k) for k in by)
287 folding[name].append(r)
319 ','.join(str(getattr(r, k) or '') for k in by): r
320 for r in results}
322 ','.join(str(getattr(r, k) or '') for k in by): r
323 for r in diff_results or []}
374 def table_entry(name, r, diff_r=None, ratios=[]): argument
379 entry.append(getattr(r, k).table()
380 if getattr(r, k, None) is not None
384 entry.append(getattr(r, k).diff_table()
385 if getattr(r, k, None) is not None
393 entry.append(getattr(r, k).diff_table()
394 if getattr(r, k, None) is not None
398 getattr(r, k, None),
421 r = table.get(name)
429 getattr(r, k, None),
434 lines.append(table_entry(name, r, diff_r, ratios))
437 r = next(iter(fold(Result, results, by=[])), None)
445 getattr(r, k, None),
448 lines.append(table_entry('TOTAL', r, diff_r, ratios))
480 for r in reader:
481 if not any('struct_'+k in r and r['struct_'+k].strip()
486 **{k: r[k] for k in StructResult._by
487 if k in r and r[k].strip()},
488 **{k: r['struct_'+k]
490 if 'struct_'+k in r
491 and r['struct_'+k].strip()}))
503 key=lambda r: tuple(
504 (getattr(r, k),) if getattr(r, k) is not None else ()
516 for r in results:
518 {k: getattr(r, k) for k in (
520 | {'struct_'+k: getattr(r, k) for k in (
529 for r in reader:
530 if not any('struct_'+k in r and r['struct_'+k].strip()
535 **{k: r[k] for k in StructResult._by
536 if k in r and r[k].strip()},
537 **{k: r['struct_'+k]
539 if 'struct_'+k in r
540 and r['struct_'+k].strip()}))