为存储库绘制任意数据 [英] Plotting arbitrary data for repository

查看:120
本文介绍了为存储库绘制任意数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种可视化随时间推移有关存储库的任意信息的方法,该信息可能是与版本有关的数字,例如:

I'm looking for a way to visualize arbitrary information about my repository over time, which might be some version-dependent number, such as:

  • 代码行
  • 乳胶文档中的行数
  • 两次提交之间的时间
  • 脚本可以输出的任何内容

可视化此信息的最佳方法是什么?

What is the best way to visualize this information?

更具体地说,我正在使用Mercury,理想情况下,我希望它具有良好的界面,并具有大小调整/滚动/等功能……Jenkins的plot插件不错,但效果不佳,但更重要的是,它无法可视化过去数据(例如,添加新指标后).

More specifically, I'm using mercurial and would ideally like something with a decent interface, with plot resizing/scrolling/etc... Jenkins' plot plugin is decent but not great, but more importantly it's not possible to visualize past data (say, after adding a new metric).

推荐答案

我建议拆分您的任务以简化所有操作.您可能需要几个不同的工具才能收集和可视化所有必需的信息.历史观点似乎是另一个巨大挑战.

I would suggest to split your task to simplify everything a little bit. It is likely you will need several different tools in order to collect and visualize all required information. Historical view seems to be another big challenge.

代码行

Jenkins有几个可用的插件,但是几乎所有插件都是高度专业的. SLOCCount插件似乎最通用,但未提供任何图形输出.

There are several plugins available for Jenkins, but almost all are highly specialized. SLOCCount plug-in seems to be most universal, but it does not provide any graphical output.

  • NSIQ Collector Plugin
  • SLOCCount plug-in
  • JavaNCSS Plugin

您的语言可能还有其他选择.例如, CCCC 将提供C和C ++代码的必需信息:

There might be some other option for your language. For example, CCCC will provide required information for C and C++ code:

乳胶文档中的行数 我看到实现这一目标的几种选择:

Number of lines in a latex document I see several options to achieve that:

  • 适应现有解决方案/插件
  • 使用存储库统计工具(例如, Pepper 可以解决问题)
  • 使用简单的shell脚本对行进行计数并报告
  • adapt existing solution/plugin
  • use repository statistics tool (Pepper, for example, can do the trick)
  • use simple shell script to count lines and report it

辣椒会生成以下内容:

请检查Pepper 画廊.还有其他工具,例如: hgchart

Please check Pepper gallery. There are another tools, for example: hgchart

两次提交之间的时间

最简单的解决方案是让一次提交触发一些琐碎的工作,因此Jenkins将提供所有信息作为构建历史的一部分(带有时间轴等).

The simplest solution is to let a commit to trigger some trivial job, so Jenkins will provide all information as part of build history (with a timeline, etc).

另一种解决方案是再次使用存储库统计工具:

Another solution is to use repository statistics tool once again:

脚本可以输出的任何内容

有几个不错的插件.

  • Plot plugin can visualize multiple values provided as properties or csv file.
  • Measurement Plots Plugin scans the output in order to find values to be visualized

快乐的持续集成.

这篇关于为存储库绘制任意数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆