<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Umesh,<div><br></div><div>There are two options for statistic tracking in the analyzer:</div><div> - debug.Stats checker (AnalyzerStatsChecker.cpp), which currently reports coverage in terms of reachable(analyzed) basic blocks in top level functions. This checker runs at the very end when analysis are complete.</div><div> - -analyzer-stats option is based on LLVM's stats option (<a href="http://llvm.org/docs/ProgrammersManual.html#Statistic">http://llvm.org/docs/ProgrammersManual.html#Statistic</a>). It enables printing of various analyzer internal counters and timers, it's extremely easy to extend.</div><div><br></div><div>You are welcome to submit patches for stats which are missing.</div><div><br></div><div>Currently, the number of warnings issued is not reported as a statistic, but is reported as output of the analyzer run (Ex: "5 warnings generated").</div><div><br></div><div>Cheers,</div><div>Anna.</div><div><br></div><div><div><div>On Jun 2, 2012, at 6:21 AM, Umesh Kalappa wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>Hi anna,<br>
thanks  for the reply and im looking for the statistics like time taken for anaylsis ,loc,no of issues found and code coverage for cumulative analysis...<br></p><p>thanks again<br>
umesh</p>
<div class="gmail_quote">On Jun 1, 2012 11:15 PM, "Anna Zaks" <<a href="mailto:ganna@apple.com">ganna@apple.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Jun 1, 2012, at 4:46 AM, Umesh Kalappa wrote:<br>
<br>
> Hi Ted and All ,<br>
><br>
> Have a question regrading the clang analyzer statistics that was echoed  by clang when we use the switch "-analyze-stats"<br>
><br>
<br>
> We see that the statistics was echoed for every module i.e for  each  transition unit or file ,  can we configure clang to echo the statistics to  whole project ???<br>
> Other thing can we have LOC information too in the statistics  ???<br>
><br>
<br>
"analyzer-stats" turns on internal analyzer statistics used for debugging, analyzer coverage/performance measurements. What statistics are you interested in?<br>
<br>
> Thanks<br>
> ~Umesh<br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote></div>
</blockquote></div><br></div></body></html>