From ce519153fd941af2f962d46f46c32ae6e6bd97f1 Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Fri, 22 Jun 2012 22:08:06 +0000 Subject: [PATCH] [analyzer] Report the cumulative number of steps the analyzer performs. llvm-svn: 159036 --- clang/lib/StaticAnalyzer/Core/CoreEngine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp index c9de20e500e9..f691d5f3d682 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.