SVN - 用於生成關於系統演變的圖形,統計數據和漂亮圖片的軟件[重復]

[英]SVN - Software to Produce Graphs, Stats and pretty pictures concerning the evolution of a system [duplicate]


Possible Duplicate:
Is there a tool that can display a SVN repository visually ( i.e. pretty charts )?

可能重復:是否有可以直觀顯示SVN存儲庫的工具(即漂亮的圖表)?

I have a google code project which I used SVN to update. I am about to submit the project as the deliverable for a thesis on producing resource intensive applications on a mobile platform.

我有一個谷歌代碼項目,我使用SVN更新。我即將提交該項目作為關於在移動平台上生成資源密集型應用程序的論文的可交付成果。

I was wondering if any of you knew of software which I could point at my repository in order to get stats for say lines of code over time? Number of classes over time?

我想知道你是否有人知道我可以指向我的存儲庫的軟件,以獲得隨着時間推移的代碼行的統計數據?課程數量隨着時間的推移?

Something like that anyway.

無論如何都是這樣的。

It's an Android project and so uses *.java files mainly.

這是一個Android項目,因此主要使用* .java文件。

Kind regards,

Gavin

5 个解决方案

#1


As you are in a Java project you could use Sonar which is an very cool open source project which not only shows statistics of lines of code but some other useful stats as method complexity, tests covering, compliance with code rules among many others. It has a demo instance called Nemo using Apache projects for you to browse its features. Here a screenshot of the Time machine report:

當您在Java項目中時,您可以使用Sonar,這是一個非常酷的開源項目,它不僅顯示代碼行的統計信息,還顯示一些其他有用的統計信息,如方法復雜性,測試覆蓋,遵守代碼規則等。它有一個名為Nemo的演示實例,使用Apache項目來瀏覽它的功能。這是時間機器報告的屏幕截圖:

Sonar time machine screenshot http://nemo.sonarsource.org/charts/trends/60175?sids=1024412,1025601,1026859,1073764,1348107,2255284&metrics=complexity,mandatory_violations_density,lines,coverage&format=png&ts=1244661473034

聲納時間機器截圖http://nemo.sonarsource.org/charts/trends/60175?sids=1024412,1025601,1026859,1073764,1348107,2255284&metrics=complexity,mandatory_violations_density,lines,coverage&format=png&ts=1244661473034

I'm pretty sure you'll find many useful info using this software!

我很確定你會發現很多有用的信息使用這個軟件!

Foot note: You're in the right track by using SCM since school, well done!

腳注:自學校開始使用SCM就走在正確的軌道上,做得好!

#2


Since your project is open source with a repository that's accessible, just add your project to Ohloh.

由於您的項目是開源的,可以訪問的存儲庫,只需將您的項目添加到Ohloh。

After you've added your project and repository url there, wait a few minutes (depending on how big your repository is) and you'll get nice graphs like these.

在那里添加了項目和存儲庫URL后,等待幾分鍾(取決於您的存儲庫有多大),您將得到這樣的好圖。

#3


ConQAT will produce some of that, and can then be hooked to a database for storage. ConQAT has the advantage of being free.

ConQAT將生成其中的一部分,然后可以連接到數據庫進行存儲。 ConQAT具有免費的優勢。

Also free for you, I believe, is TeamCity. It can produce some of what you want automatically and I just extended mine to add some custom graphs for source by file type. A simple batch file is building a teamcity-info.xml, which TeamCity will interpret for me. A couple of config changes later to main-settings.xml and project/plugin-settings.xml and I get graphs over time.

我相信,TeamCity也是免費的。它可以自動生成你想要的一些東西,我只是擴展了我的庫,為文件類型添加一些自定義圖形。一個簡單的批處理文件正在構建一個teamcity-info.xml,TeamCity將為我解釋。稍后將幾個配置更改為main-settings.xml和project / plugin-settings.xml,隨着時間的推移我會得到圖表。

You could easily write a batch file to count lines per file, or count lines per file excluding comment-only lines.

您可以輕松編寫批處理文件來計算每個文件的行數,或者計算每個文件的行數,不包括僅注釋行。

EDIT: I don't know how I missed the "point at my repository" part of your question. For my answers to work you'd have to checkout each revision, run the stats, repeat. Sorry.

編輯:我不知道我是如何錯過你的問題的“我的存儲庫點”的一部分。對於我的工作答案,你必須檢查每個修訂版,運行統計數據,重復。抱歉。

#4


StatSVN Does at least some of what you want. I don't think it will do anything that requires understanding the source, but it will do line and file-based stats.

StatSVN至少有一些你想要的東西。我不認為它會做任何需要理解源的事情,但它會做基於行和文件的統計數據。

#5


take a look on code swarm

看看代碼群

here is demonstration based on python project repository activity

這是基於python項目存儲庫活動的演示

if you're interested, here are instructions on generating video

如果您有興趣,請參閱以下有關生成視頻的說明


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/06/10/72fb6fa11187c92bf81978602221b4c5.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com