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():
7272 cmd .add_argument ("--append" , metavar = "FILENAME" ,
7373 help = "Add runs to an existing file, or create it "
7474 "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" )
7578 filter_opts (cmd )
7679
7780 # show
Original file line number Diff line number Diff line change @@ -206,5 +206,7 @@ def get_pyperf_opts(options):
206206 opts .append ('--track-memory' )
207207 if options .inherit_environ :
208208 opts .append ('--inherit-environ=%s' % ',' .join (options .inherit_environ ))
209+ if options .min_time :
210+ opts .append ('--min-time=%s' % options .min_time )
209211
210212 return opts
You can’t perform that action at this time.
0 commit comments