From: George Karpenkov Date: Mon, 30 Jul 2018 23:01:47 +0000 (+0000) Subject: [analyzer] [tests] Add an option for showing statistics after running tests. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f6d65c685d7abbf8a2b759034dba51c71e6a418;p=platform%2Fupstream%2Fllvm.git [analyzer] [tests] Add an option for showing statistics after running tests. Do not show statistics by default. llvm-svn: 338323 --- diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py index 1c44f5c..7c97447 100755 --- a/clang/utils/analyzer/CmpRuns.py +++ b/clang/utils/analyzer/CmpRuns.py @@ -324,7 +324,7 @@ def dumpScanBuildResultsDiff(dirA, dirB, opts, deleteEmpty=True, # 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