一个cli工具,用于确定所选间隔的stdin行速率。
bucketize的Python项目详细描述
什么?
一个cli工具,用于确定所选间隔的stdin行速率。
安装
$ python setup.py install
示例
向Graphite发送进程每10秒执行的close()调用数:
$ strace -p 2760 -e close | bucketize --time_bucket_size 10 --output_template "one.two.three {amount} {time}" one.two.three 11476562447.65 one.two.three 01476562457.65 one.two.three 681476562467.65 one.two.three 11476562477.65 one.two.three 11476562487.65 one.two.three 01476562497.65^C $ strace -p 2760 -e close | bucketize --time_bucket_size 10 --output_template "one.two.three {amount} {time}"| nc graphite-server 2003