Commit 44cc6d74 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Add script

parent f6e30103
#!/usr/bin/env python
from hpp.corbaserver import Benchmark
import argparse
parser = argparse.ArgumentParser\
(description='Print results obtained with class hpp.corbaserver.Benchmark')
parser.add_argument ('input_file', type = str, nargs = 1,
help = 'input file containing the saved results')
parser.add_argument ('output_file', type = str, nargs = '?', default=None,
help = 'output file (standard output is used if omitted)')
args = parser.parse_args ()
b = Benchmark(None, None, None)
if args.output_file:
with open (args.output_file, 'w') as f:
print b
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment