()
| 316 | |
| 317 | |
| 318 | def main(): |
| 319 | parser = argparse.ArgumentParser(description=__doc__) |
| 320 | commands = parser.add_subparsers(dest='command', required=True) |
| 321 | setup = commands.add_parser('prepare') |
| 322 | setup.add_argument('--root', type=Path, required=True) |
| 323 | setup.add_argument('--bundle', type=Path, required=True) |
| 324 | setup.add_argument('--manifest', type=Path, required=True) |
| 325 | setup.add_argument('--cli', type=Path, required=True) |
| 326 | setup.add_argument('--repair-derived-indexes', action='store_true', |
| 327 | help='explicit setup repair after a failed doctor check; preserve evidence and label the fixture') |
| 328 | run = commands.add_parser('measure') |
| 329 | run.add_argument('--root', type=Path, required=True) |
| 330 | run.add_argument('--probe', type=Path, required=True) |
| 331 | run.add_argument('--output', type=Path, required=True) |
| 332 | run.add_argument('--iterations', type=int, default=8) |
| 333 | run.add_argument('--trace-span-context', action='store_true', |
| 334 | help='emit per-context phase/counter diagnostics; label this run diagnostic, not an untraced timing baseline') |
| 335 | args = parser.parse_args() |
| 336 | prepare(args) if args.command == 'prepare' else measure(args) |
| 337 | |
| 338 | |
| 339 | if __name__ == '__main__': |
no test coverage detected