Debian Codegraph @

tools/make-both-single-timing-files.py

raw symbols ◀ ▶
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 `coqc -time` into a sorted table''')
6 add_sort_by(parser)
7 add_user(parser, single_timing=True)
8 add_fuzz(parser)
9 add_after_file_name(parser)
10 add_before_file_name(parser)
11 add_output_file_name(parser)
12 args = parser.parse_args()
13 left_dict = get_single_file_times(args.AFTER_FILE_NAME, use_real=args.real)
14 right_dict = get_single_file_times(args.BEFORE_FILE_NAME, use_real=args.real)
15 left_dict, right_dict = adjust_fuzz(left_dict, right_dict, fuzz=args.fuzz)
16 table = make_diff_table_string(left_dict, right_dict, tag="Code", sort_by=args.sort_by)
17 print_or_write_table(table, args.OUTPUT_FILE_NAME)