]> granicus.if.org Git - clang/commitdiff
[analyzer] Report the cumulative number of steps the analyzer performs.
authorAnna Zaks <ganna@apple.com>
Fri, 22 Jun 2012 22:08:06 +0000 (22:08 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 22 Jun 2012 22:08:06 +0000 (22:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159036 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/CoreEngine.cpp

index c9de20e500e9389d25c92e439bb448f5292a8338..f691d5f3d68241c308127d84fa97039abd44fed0 100644 (file)
@@ -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.