diff options
author | Anna Zaks <ganna@apple.com> | 2012-06-22 22:08:06 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-06-22 22:08:06 +0000 |
commit | ce519153fd941af2f962d46f46c32ae6e6bd97f1 (patch) | |
tree | 3e5a04ce3c06dc447898006c1ea3bd49cfca2152 /clang/lib/StaticAnalyzer/Core/CoreEngine.cpp | |
parent | f5cdea3d79fdbb116a8292363aaa9b354d62150b (diff) | |
download | bcm5719-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.cpp | 4 |
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. |