We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1d636 commit 662454dCopy full SHA for 662454d
2 files changed
pyperformance/cli.py
@@ -72,6 +72,9 @@ def parse_args():
72
cmd.add_argument("--append", metavar="FILENAME",
73
help="Add runs to an existing file, or create it "
74
"if it doesn't exist")
75
+ cmd.add_argument("--min-time", metavar="MIN_TIME",
76
+ help="Minimum duration in seconds of a single "
77
+ "value, used to calibrate the number of loops")
78
filter_opts(cmd)
79
80
# show
pyperformance/run.py
@@ -206,5 +206,7 @@ def get_pyperf_opts(options):
206
opts.append('--track-memory')
207
if options.inherit_environ:
208
opts.append('--inherit-environ=%s' % ','.join(options.inherit_environ))
209
+ if options.min_time:
210
+ opts.append('--min-time=%s' % options.min_time)
211
212
return opts
0 commit comments