mirror of https://github.com/microsoft/clang.git
[analyzer] [tests] Add an option for showing statistics after running tests.
Do not show statistics by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cfa1c8b413
commit
ef9eb3e6cd
|
@ -324,7 +324,7 @@ def dumpScanBuildResultsDiff(dirA, dirB, opts, deleteEmpty=True,
|
||||||
# Load the run results.
|
# Load the run results.
|
||||||
resultsA = loadResults(dirA, opts, opts.rootA, deleteEmpty)
|
resultsA = loadResults(dirA, opts, opts.rootA, deleteEmpty)
|
||||||
resultsB = loadResults(dirB, opts, opts.rootB, deleteEmpty)
|
resultsB = loadResults(dirB, opts, opts.rootB, deleteEmpty)
|
||||||
if resultsA.stats:
|
if opts.show_stats:
|
||||||
compareStats(resultsA, resultsB)
|
compareStats(resultsA, resultsB)
|
||||||
if opts.stats_only:
|
if opts.stats_only:
|
||||||
return
|
return
|
||||||
|
@ -399,6 +399,8 @@ def generate_option_parser():
|
||||||
Requires matplotlib")
|
Requires matplotlib")
|
||||||
parser.add_option("--stats-only", action="store_true", dest="stats_only",
|
parser.add_option("--stats-only", action="store_true", dest="stats_only",
|
||||||
default=False, help="Only show statistics on reports")
|
default=False, help="Only show statistics on reports")
|
||||||
|
parser.add_option("--show-stats", action="store_true", dest="show_stats",
|
||||||
|
default=False, help="Show change in statistics")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue