Tool for program statistics(程序统计工具)
问题描述
是否有工具可以解析我的源代码(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.
这篇关于程序统计工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:程序统计工具
基础教程推荐
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- CString 到 char* 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
