程序统计工具

2022-01-07 00:00:00 statistics fortran parsing c c++

是否有工具可以解析我的源代码(fortran、C 或 C++)并返回统计信息,例如循环次数、平均循环大小、函数数量、函数调用次数、次数, 数组、变量等的大小和类型?

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 ?

类似于 this 的东西,它在我的架构上不容易运行

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

推荐答案

Google 的神奇术语是代码度量".维基百科有一个列表.

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

相关文章