Can Lazarus IDE report on a Project or Package any statistics?
eg: % code lines, % comment lines, total no of lines of code, number of units etc..?
If not, anybody know of such a tool I can use on Object Pascal code?
Regards,
- Graeme -

Mailing lists / lazarus / 2009-11
12 messages · 8 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Can Lazarus IDE report on a Project or Package any statistics?
eg: % code lines, % comment lines, total no of lines of code, number of units etc..?
If not, anybody know of such a tool I can use on Object Pascal code?
Regards,
- Graeme -
Have you tried command-line utility SLOC Count?
http://www.dwheeler.com/sloccount/
2009/11/17 Graeme Geldenhuys
Zitat von Alexsander Rosa :
Have you tried command-line utility SLOC Count? http://www.dwheeler.com/sloccount/
Funny tool.
I ran it on a single unit (ide/codebrowser.pas) and got:
Total Physical Source Lines of Code (SLOC) = 2,849 Development Effort Estimate, Person-Years (Person-Months) = 0.60 (7.21) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 0.44 (5.29) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 1.36 Total Estimated Cost to Develop = $ 81,109 (average salary = $56,286/year, overhead = 2.40).
81,109 dollar - not too bad for 6 days work, ehm I mean 7.21 months.
Lazarus in total is worth 45mio dollar and requires 68 developers.
Mattias
Mattias G?rtner wrote81,109 dollar - not too bad for 6 days work, ehm I mean 7.21 months.
fpGUI Toolkit is worth $2.5 million US Dollars, requires 12 developers and will take 19 years to implement. I wasn't paid anything near that; implemented it in 3 years (part time) and I was the only developer!
First thing tomorrow morning I'm calling a meeting with upper management. ;-)
Regards,
- Graeme -
Zitat von Alexsander Rosa : Funny tool. I ran it on a single unit (ide/codebrowser.pas)…
Mattias G?rtner wroteLazarus in total is worth 45mio dollar and requires 68 developers.
I think your hidden '.svn' directories are causing the program to give incorrect results - counting duplicate pas files or something.
I ran it against my git mirror of Lazarus (which contains no .svn directories) and is up to date with latest SubVersion revision.
----------------------
Total Physical Source Lines of Code (SLOC) = 964,104 Development Effort Estimate, Person-Years (Person-Months) = 271.87 (3,262.43)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 4.51 (54.09) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 60.32 Total Estimated Cost to Develop = $ 36,725,837 ----------------------
Still not bad! Almost a million lines of code. :) You guys deserve a pat on the back.
Regards,
- Graeme -
Have you tried command-line utility SLOC Count? http://www.dwheeler.com/sloccount/…
Alexsander Rosa wroteHave you tried command-line utility SLOC Count? http://www.dwheeler.com/sloccount/
Wow! Stats for Free Pascal Compiler 2.4.0-rc1 project. That's a lot of lines of code.
-------------------------------
Total Physical Source Lines of Code (SLOC) = 1,776,887 Development Effort Estimate, Person-Years (Person-Months) = 516.62 (6,199.46)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 5.75 (69.03) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 89.81 Total Estimated Cost to Develop = $ 69,788,590 -------------------------------
Regards,
- Graeme -
Oh, well, I'll settle for 1 % of this :)
Michael.
I think your hidden '.svn' directories are causing the program to give incorrect results…
Zitat von Graeme Geldenhuys :
No. It's clever enough to skip them.
But my dir contains a lot of auto created fpdoc xml files and some more junk from endless experiments.
OTOH it did not count the lfm files - 90kloc.
And here are the results for the mighty Free Pascal compiler:
Total Physical Source Lines of Code (SLOC) = 198,187 Development Effort Estimate, Person-Years (Person-Months) = 51.64 (619.64) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 2.40 (28.77) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 21.54 Total Estimated Cost to Develop = $ 6,975,423 (average salary = $56,286/year, overhead = 2.40).
And here the results for fpc (excluding install):
Total Physical Source Lines of Code (SLOC) = 1,789,257 Development Effort Estimate, Person-Years (Person-Months) = 520.40 (6,244.79) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 5.77 (69.22) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 90.22 Total Estimated Cost to Develop = $ 70,298,812 (average salary = $56,286/year, overhead = 2.40).
Mattias
On Tue, 17 Nov 2009 15:35:06 +0100
Mattias G?rtner wrote:
Yeah, great tool, all have so much fun.
Here are the missing results for 'Hello World':
Total Physical Source Lines of Code (SLOC) = 4 Development Effort Estimate, Person-Years (Person-Months) = 0.00 (0.01) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 0.03 (0.39) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 0.02 Total Estimated Cost to Develop = $ 82 (average salary = $56,286/year, overhead = 2.40).
Are we finally done with this tool?
R.
2009/11/17 Reimar Grabowski :
I'm in the wrong line of work :( I need to be writing hello world apps for a living.
Henry
Can Lazarus IDE report on a Project or Package any statistics? eg: % code lines, %…
Hello,
Have you tried Pascal Analyzer from Peganza here : http://www.peganza.com/#PAL?
Best regards,
Thierry
Can Lazarus IDE report on a Project or Package any statistics? eg: % code lines, %…
Graeme Geldenhuys pisze:
If not, anybody know of such a tool I can use on Object Pascal code?