|
70 | 70 | class RevParseAction(argparse.Action):
|
71 | 71 | def __call__(self, parser, namespace, values, option_string=None):
|
72 | 72 | import subprocess
|
73 |
| - cmd = 'git rev-parse --short {0}'.format(values) |
| 73 | + cmd = 'git rev-parse --short -verify {0}^{{commit}}'.format(values) |
74 | 74 | rev_parse = subprocess.check_output(cmd, shell=True)
|
75 | 75 | setattr(namespace, self.dest, rev_parse.strip())
|
76 | 76 |
|
@@ -157,6 +157,11 @@ def __call__(self, parser, namespace, values, option_string=None):
|
157 | 157 | action='store_true',
|
158 | 158 | help='when specified with -N, prints the output of describe() per vbench results. ' )
|
159 | 159 |
|
| 160 | +parser.add_argument('--temp-dir', |
| 161 | + metavar="PATH", |
| 162 | + default=None, |
| 163 | + help='Specify temp work dir to use. ccache depends on builds being invoked from consistent directory.' ) |
| 164 | + |
160 | 165 | parser.add_argument('-q', '--quiet',
|
161 | 166 | default=False,
|
162 | 167 | action='store_true',
|
@@ -192,7 +197,8 @@ def profile_comparative(benchmarks):
|
192 | 197 | from vbench.db import BenchmarkDB
|
193 | 198 | from vbench.git import GitRepo
|
194 | 199 | from suite import BUILD, DB_PATH, PREPARE, dependencies
|
195 |
| - TMP_DIR = tempfile.mkdtemp() |
| 200 | + |
| 201 | + TMP_DIR = args.temp_dir or tempfile.mkdtemp() |
196 | 202 |
|
197 | 203 | try:
|
198 | 204 |
|
@@ -434,6 +440,10 @@ def print_report(df,h_head=None,h_msg="",h_baseline=None,b_msg=""):
|
434 | 440 |
|
435 | 441 | stats_footer = "\n"
|
436 | 442 | if args.stats :
|
| 443 | + try: |
| 444 | + pd.options.display.expand_frame_repr=False |
| 445 | + except: |
| 446 | + pass |
437 | 447 | stats_footer += str(df.T.describe().T) + "\n\n"
|
438 | 448 |
|
439 | 449 | s+= stats_footer
|
|
0 commit comments