def __call__(self, args): if args.list: ops = [x[4:] for x in dir(perf_test.Item) if x.startswith("_op_")] ops.sort() for op in ops: print(op) else: if not args.file: self.ctx.die(167, "No files given. Use '-' for stdin.") client = self.ctx.conn(args) ctx = perf_test.Context(None, client=client) self.ctx.out("Saving performance results to %s" % ctx.dir) ctx.add_reporter(perf_test.CsvReporter(ctx.dir)) # ctx.add_reporter(perf_test.HdfReporter(ctx.dir)) # ctx.add_reporter(perf_test.PlotReporter()) handler = perf_test.PerfHandler(ctx) perf_test.handle(handler, args.file)
def __call__(self, args): if args.list: ops = [ x[4:] for x in dir(perf_test.Item) if x.startswith("_op_") ] ops.sort() for op in ops: print op else: if not args.file: self.ctx.die(167, "No files given. Use '-' for stdin.") client = self.ctx.conn(args) ctx = perf_test.Context(None, client = client) self.ctx.out("Saving performance results to %s" % ctx.dir) ctx.add_reporter(perf_test.CsvReporter(ctx.dir)) #ctx.add_reporter(perf_test.HdfReporter(ctx.dir)) #ctx.add_reporter(perf_test.PlotReporter()) handler = perf_test.PerfHandler(ctx) perf_test.handle(handler, args.file)