summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-06-22 22:08:06 +0000
committerAnna Zaks <ganna@apple.com>2012-06-22 22:08:06 +0000
commitce519153fd941af2f962d46f46c32ae6e6bd97f1 (patch)
tree3e5a04ce3c06dc447898006c1ea3bd49cfca2152 /clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
parentf5cdea3d79fdbb116a8292363aaa9b354d62150b (diff)
downloadbcm5719-llvm-ce519153fd941af2f962d46f46c32ae6e6bd97f1.tar.gz
bcm5719-llvm-ce519153fd941af2f962d46f46c32ae6e6bd97f1.zip
[analyzer] Report the cumulative number of steps the analyzer performs.
llvm-svn: 159036
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/CoreEngine.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/CoreEngine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
index c9de20e500e..f691d5f3d68 100644
--- a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
@@ -26,6 +26,8 @@
using namespace clang;
using namespace ento;
+STATISTIC(NumSteps,
+ "The # of steps executed.");
STATISTIC(NumReachedMaxSteps,
"The # of times we reached the max number of steps.");
STATISTIC(NumPathsExplored,
@@ -207,6 +209,8 @@ bool CoreEngine::ExecuteWorkList(const LocationContext *L, unsigned Steps,
--Steps;
}
+ NumSteps++;
+
const WorkListUnit& WU = WList->dequeue();
// Set the current block counter.
OpenPOWER on IntegriCloud