From: Anna Zaks Date: Fri, 22 Jun 2012 22:08:06 +0000 (+0000) Subject: [analyzer] Report the cumulative number of steps the analyzer performs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df19fe7cafcb02859efeb6963cddeafef4350ddf;p=clang [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 --- 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.