r338323 - [analyzer] [tests] Add an option for showing statistics after running tests.
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 30 16:01:47 PDT 2018
Author: george.karpenkov
Date: Mon Jul 30 16:01:47 2018
New Revision: 338323
URL: http://llvm.org/viewvc/llvm-project?rev=338323&view=rev
Log:
[analyzer] [tests] Add an option for showing statistics after running tests.
Do not show statistics by default.
Modified:
cfe/trunk/utils/analyzer/CmpRuns.py
Modified: cfe/trunk/utils/analyzer/CmpRuns.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/CmpRuns.py?rev=338323&r1=338322&r2=338323&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/CmpRuns.py (original)
+++ cfe/trunk/utils/analyzer/CmpRuns.py Mon Jul 30 16:01:47 2018
@@ -324,7 +324,7 @@ def dumpScanBuildResultsDiff(dirA, dirB,
# Load the run results.
resultsA = loadResults(dirA, opts, opts.rootA, deleteEmpty)
resultsB = loadResults(dirB, opts, opts.rootB, deleteEmpty)
- if resultsA.stats:
+ if opts.show_stats:
compareStats(resultsA, resultsB)
if opts.stats_only:
return
@@ -399,6 +399,8 @@ def generate_option_parser():
Requires matplotlib")
parser.add_option("--stats-only", action="store_true", dest="stats_only",
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
More information about the cfe-commits
mailing list