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 | df19fe7cafcb02859efeb6963cddeafef4350ddf (patch) | |
tree | 556d7ce0a97e636460068eaa0400e6c6a305fbdc /lib/StaticAnalyzer/Core/CoreEngine.cpp | |
parent | 4b2239bec687dd8d45524205209c2629febb6663 (diff) |
[analyzer] Report the cumulative number of steps the analyzer performs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/CoreEngine.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/CoreEngine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Core/CoreEngine.cpp b/lib/StaticAnalyzer/Core/CoreEngine.cpp index c9de20e500..f691d5f3d6 100644 --- a/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/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. |