564
edits
Line 194: | Line 194: | ||
The entire mozilla/browser is 77000 lines. That makes Places about 20% of browser. 20%? Really? | The entire mozilla/browser is 77000 lines. That makes Places about 20% of browser. 20%? Really? | ||
Ok, here is browser/ and toolkit/: | |||
<pre> | |||
ddahl-t500 ~ % perl ~/bin/cloc.pl --exclude-dir=.hg ~/code/moz/mozilla-central/mozilla/browser/ ~/code/moz/mozilla-central/mozilla/toolkit | |||
2926 text files. | |||
2860 unique files. | |||
956 files ignored. | |||
http://cloc.sourceforge.net v 1.08 T=5.0 s (389.8 files/s, 97069.2 lines/s) | |||
------------------------------------------------------------------------------- | |||
Language files blank comment code scale 3rd gen. equiv | |||
------------------------------------------------------------------------------- | |||
Javascript 643 22306 42431 110082 x 1.48 = 162921.36 | |||
C++ 195 15972 18124 73938 x 1.51 = 111646.38 | |||
XML 283 4359 1859 32640 x 1.90 = 62016.00 | |||
Bourne Shell 19 3368 4739 25717 x 3.81 = 97981.77 | |||
HTML 125 6454 460 25330 x 1.90 = 48127.00 | |||
CSS 250 5856 6691 22705 x 1.00 = 22705.00 | |||
IDL 86 1382 0 12617 x 3.80 = 47944.60 | |||
C/C++ Header 208 4059 12616 11622 x 1.00 = 11622.00 | |||
m4 2 759 31 6548 x 1.00 = 6548.00 | |||
C 6 338 297 2700 x 0.77 = 2079.00 | |||
DTD 106 527 783 2672 x 1.90 = 5076.80 | |||
Objective C 3 235 211 959 x 2.96 = 2838.64 | |||
Perl 9 198 404 854 x 4.00 = 3416.00 | |||
Python 4 115 294 542 x 4.20 = 2276.40 | |||
make 1 31 41 301 x 2.50 = 752.50 | |||
MATLAB 2 48 0 277 x 4.00 = 1108.00 | |||
PHP 2 75 126 248 x 3.50 = 868.00 | |||
Java 2 29 72 97 x 1.36 = 131.92 | |||
Assembly 1 15 39 57 x 0.25 = 14.25 | |||
SQL 1 2 0 56 x 2.29 = 128.24 | |||
XSLT 1 10 0 28 x 1.90 = 53.20 | |||
------------------------------------------------------------------------------- | |||
SUM: 1949 66138 89218 329990 x 1.79 = 590255.06 | |||
------------------------------------------------------------------------------- | |||
</pre> | |||
And here is browser/components/places and toolkit/components/places: | |||
<pre> | |||
ddahl-t500 ~ % perl ~/bin/cloc.pl --exclude-dir=.hg ~/code/moz/mozilla-central/mozilla/browser/components/places ~/code/moz/mozilla-central/mozilla/toolkit/components/places | |||
330 text files. | |||
321 unique files. | |||
57 files ignored. | |||
http://cloc.sourceforge.net v 1.08 T=0.5 s (542.0 files/s, 169236.0 lines/s) | |||
------------------------------------------------------------------------------- | |||
Language files blank comment code scale 3rd gen. equiv | |||
------------------------------------------------------------------------------- | |||
Javascript 203 5210 14992 26791 x 1.48 = 39650.68 | |||
C++ 13 3747 4643 17798 x 1.51 = 26874.98 | |||
IDL 12 347 0 3428 x 3.80 = 13026.40 | |||
XML 4 407 83 3138 x 1.90 = 5962.20 | |||
C/C++ Header 12 453 884 1979 x 1.00 = 1979.00 | |||
HTML 23 60 22 529 x 1.90 = 1005.10 | |||
SQL 1 2 0 56 x 2.29 = 128.24 | |||
CSS 3 11 1 37 x 1.00 = 37.00 | |||
------------------------------------------------------------------------------- | |||
SUM: 271 10237 20625 53756 x 1.65 = 88663.60 | |||
------------------------------------------------------------------------------- | |||
</pre> | |||
53000 Lines. Wow. | |||
So, 16 percent of the code if you count toolkit. |
edits