File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 56
56
parser .add_argument ('-o' , '--output' ,
57
57
metavar = "<file>" ,
58
58
dest = 'log_file' ,
59
- help = 'path of file in which to save the report (default: vb_suite.log).' )
59
+ help = 'path of file in which to save the textual report (default: vb_suite.log).' )
60
+ parser .add_argument ('-d' , '--outdf' ,
61
+ metavar = "FNAME" ,
62
+ dest = 'outdf' ,
63
+ default = None ,
64
+ help = 'Name of file to df.save() the result table into. Will overwrite' )
60
65
parser .add_argument ('-r' , '--regex' ,
61
66
metavar = "REGEX" ,
62
67
dest = 'regex' ,
@@ -198,14 +203,19 @@ def main():
198
203
logfile .close ()
199
204
200
205
prprint (s )
201
- prprint ("Results were also written to the logfile at '%s'\n " %
206
+ prprint ("Results were also written to the logfile at '%s'" %
202
207
args .log_file )
203
208
204
209
finally :
205
210
# print("Disposing of TMP_DIR: %s" % TMP_DIR)
206
211
shutil .rmtree (TMP_DIR )
207
212
logfile .close ()
208
213
214
+ if args .outdf :
215
+
216
+ opath = os .path .abspath (os .path .join (os .curdir ,args .outdf ))
217
+ prprint ("The results DataFrame was written to '%s'\n " % opath )
218
+ totals .save (opath )
209
219
210
220
# hack , vbench.git ignores some commits, but we
211
221
# need to be able to reference any commit.
You can’t perform that action at this time.
0 commit comments