代码行数统计工具_代码统计工具--gitstats

早上邮件接到DPDK 20.11发布

[dpdk-dev] [dpdk-announce] DPDK 20.11 released

A new major release is available:https://fast.dpdk.org/rel/dpdk-20.11.tar.xz
Our Thanksgiving gift is the biggest DPDK release ever:
2195 commits from 214 authors
2665 files changed, 269546 insertions(+), 107426 deletions(-)
......

Below is the number of commits per employer (with authors count):
687 Intel (72)
439 Nvidia (34)
150 Huawei (11)
123 Broadcom (15)
116 Solarflare (1)
104 Red Hat (6)
96 OKTET Labs (3)
79 Marvell (16)
71 Arm (7)
59 Trustnet (1)
52 Microsoft (3)
51 NXP (12)
27 Semihalf (1)
27 Samsung (2)
19 6WIND (5)
17 Cisco (4)
13 BIFIT (1)
11 Emumba (2)
7 Xilinx (1)
7 Chelsio (2)
5 Inspur (1)
4 MayaData (1)

基于此背景在想有什么方便工具可以统计代码提交情况

代码统计工具--gitstats

http://gitstats.sourceforge.net/​gitstats.sourceforge.net

安装gitstats

yum install gitstats

apt-get install gitstats

DPDK代码https://github.com/DPDK/dpdk.git (tag v20.11)

执行如下统计命令

gitstats -c max_authors=200 -c start_date=2020-8-8 . ~/output/dpdk/20.11

更多命令参见

 gitstats --help

Usage: gitstats [options] <gitpath..> <outputpath>

Options:
-c key=value     Override configuration value

Default config values:
{'project_name': '', 'processes': 8, 'max_domains': 10, 'commit_begin': '', 'max_ext_length': 10, 'commit_end': 'HEAD', 'linear_linestats': 1, 'style': 'gitstats.css', 'max_authors': 20, 'authors_top': 5, 'start_date': ''}

Please see the manual page for more details.

~/output/dpdk/20.11此目录生成了统计的网页,用浏览器打开index.html

4dfd575791ef0c70bade1f3f4918975c.png
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值