Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool for program statistics

Is there a tool which is able to parse my source code (fortran, C or C++) and return statistics such as the number of loops, the average loop size, the number of functions, the number of function calls, the number, size and type of arrays, variables, etc ?

Something similar to this which does not run easily on my architecture

like image 216
Davide Avatar asked Nov 07 '09 15:11

Davide


People also ask

What are the tools used in statistics?

Some of the most common and convenient statistical tools to quantify such comparisons are the F-test, the t-tests, and regression analysis. Because the F-test and the t-tests are the most basic tests they will be discussed first.

What are the four statistical tools?

Statistical methods were classified into four categories: descriptive methods, parametric inferential methods, nonparametric inferential methods, and predictive methods.


2 Answers

The magic Google term is "code metrics". Wikipedia has a list.

like image 76
Thomas Avatar answered Oct 27 '22 10:10

Thomas


There is a tool called nDepend that gives that kind of analysis.

http://ndepend.com/

It is mainly for .net languages, but they do have a version for c++ and Java.

like image 2
Shiraz Bhaiji Avatar answered Oct 27 '22 10:10

Shiraz Bhaiji