File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ def parse_args():
72
72
cmd .add_argument ("--append" , metavar = "FILENAME" ,
73
73
help = "Add runs to an existing file, or create it "
74
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" )
75
78
filter_opts (cmd )
76
79
77
80
# show
Original file line number Diff line number Diff line change @@ -206,5 +206,7 @@ def get_pyperf_opts(options):
206
206
opts .append ('--track-memory' )
207
207
if options .inherit_environ :
208
208
opts .append ('--inherit-environ=%s' % ',' .join (options .inherit_environ ))
209
+ if options .min_time :
210
+ opts .append ('--min-time=%s' % options .min_time )
209
211
210
212
return opts
You can’t perform that action at this time.
0 commit comments