LGPL-2.1
1999-2021 The Coq Development Team,; Institut National de Recherche en Informatique et en Automatique (INRIA),; Centre National de la Recherche Scientifique (CNRS),; Microsoft corporation; and contributors
debian/copyright
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
#!/usr/bin/env python3 |
| 2 |
from TimeFileMaker import * |
| 3 |
|
| 4 |
if __name__ == '__main__': |
| 5 |
parser = argparse.ArgumentParser(description=r'''Formats timing information from the output of two invocations of `make TIMED=1` into a sorted table.''') |
| 6 |
add_sort_by(parser) |
| 7 |
add_real(parser) |
| 8 |
add_include_mem(parser) |
| 9 |
add_sort_by_mem(parser) |
| 10 |
add_after_file_name(parser) |
| 11 |
add_before_file_name(parser) |
| 12 |
add_output_file_name(parser) |
| 13 |
args = parser.parse_args() |
| 14 |
left_dict = get_times_and_mems(args.AFTER_FILE_NAME, use_real=args.real, include_mem=args.include_mem) |
| 15 |
right_dict = get_times_and_mems(args.BEFORE_FILE_NAME, use_real=args.real, include_mem=args.include_mem) |
| 16 |
table = make_diff_table_string(left_dict, right_dict, sort_by=args.sort_by, include_mem=args.include_mem, sort_by_mem=args.sort_by_mem) |
| 17 |
print_or_write_table(table, args.OUTPUT_FILE_NAME) |