推荐一个代码行数统计工具cloc
来源:互联网 发布:perceptron算法 编辑:程序博客网 时间:2024/05/05 14:45
代码行数统计工具cloc,它不但能统计代码行数,还能自动过滤掉代码中的注释,使用起来也很方便,强力推荐。
安装很方便,Ubuntu上直接udo apt-get install cloc就可以了
下面用mysql来做个例子吧,首先进入mysql的源代码文件夹:
qch@qch ~/aproject $ cd mysql-5.6.19/qch@qch ~/aproject/mysql-5.6.19 $ cloc .defined(%hash) is deprecated at /usr/bin/cloc line 1277.(Maybe you should just omit the defined()?) 13804 text files. 13319 unique files. 9686 files ignored.http://cloc.sourceforge.net v 1.53 T=17.0 s (241.0 files/s, 143571.1 lines/s)--------------------------------------------------------------------------------Language files blank comment code--------------------------------------------------------------------------------C++ 1153 187301 209441 937741C 519 36218 40159 457187C/C++ Header 1389 51302 114475 206003Java 612 13120 19048 54595Perl 142 9515 6892 30931Bourne Shell 142 5293 5848 28855XML 47 965 1242 7847SQL 23 764 822 5791Python 4 346 271 1264Teamcenter def 21 20 135 1032Pascal 8 0 1403 969yacc 2 152 64 810HTML 5 40 53 524lex 3 219 102 524D 9 59 -9 494Javascript 1 33 62 131make 3 39 26 108m4 1 7 27 75DOS Batch 8 36 78 69awk 1 2 15 54Bourne Again Shell 1 8 16 28YAML 1 0 0 16SKILL 1 8 15 16Visual Basic 1 0 0 12--------------------------------------------------------------------------------SUM: 4097 305447 400185 1735076--------------------------------------------------------------------------------搞定。
0 0
- 推荐一个代码行数统计工具cloc
- 使用 cloc 统计代码行数
- 使用 cloc 统计代码行数
- 代码统计工具cloc
- 代码量统计工具cloc
- Mac下统计任意文件夹中代码行数的工具——cloc
- Mac下统计任意文件夹中代码行数的工具——cloc
- cloc工具统计项目代码量
- Linux下源代码行数统计工具(sloccount, cloc等)
- 统计项目代码行数Count Lines of Code(CLOC)
- 代码统计利器--CLOC
- 代码行数统计工具
- 代码行数统计工具
- 代码行数统计工具
- 代码行数统计工具
- 代码规模统计——CLOC.pl工具使用介绍
- CLOC(Count Lines Of Code)代码统计工具
- 如何在Windows中使用cloc代码统计工具
- Python学习笔记---变量与数据类型
- Tomcat中文乱码问题的原理和解决方法
- 89. 基于Notes/Domino的文档工作流系统(一)
- 你值得拥有:25 个 Linux 性能监控工具
- linux 命令记录
- 推荐一个代码行数统计工具cloc
- javaweb-day03-6(基础加强-内省)
- Nginx(PHP/fastcgi)的PATH_INFO问题
- 默写AJAX基本框架
- 程序员必看的书(七)
- 诊断Oracle Clusterware和RAC组件
- mssql sql SQL参数化查询的另一个理由——命中执行计划
- go 运维,检测 web 服务状态
- SetColorIndex 失效的问题