MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / main

Function main

tools/materialize-bench/imported_guest.py:318–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317
318def 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
339if __name__ == '__main__':

Callers 1

imported_guest.pyFile · 0.70

Calls 2

prepareFunction · 0.70
measureFunction · 0.70

Tested by

no test coverage detected