posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          Statistics of code line for project

          Posted on 2012-05-31 15:32 Milo的海域 閱讀(307) 評(píng)論(0)  編輯  收藏 所屬分類: Skills
          A tool cloc which wrote by perl could help u do that:
          http://cloc.sourceforge.net/

          prompt> cloc perl-5.10.0.tar.gz
              
          4076 text files.
              
          3883 unique files.                                          
              
          1521 files ignored.

          http://cloc.sourceforge.net v 
          1.50  T=12.0 s (209.2 files/s, 70472.1 lines/s)
          -------------------------------------------------------------------------------
          Language                     files          blank        comment           code
          -------------------------------------------------------------------------------
          Perl                          
          2052         110356         130018         292281
          C                              
          135          18718          22862         140483
          C/C++ Header                   
          147           7650          12093          44042
          Bourne Shell                   
          116           3402           5789          36882
          Lisp                             
          1            684           2242           7515
          make                             
          7            498            473           2044
          C++                             
          10            312            277           2000
          XML                             
          26            231              0           1972
          yacc                             
          2            128             97           1549
          YAML                             
          2              2              0            489
          DOS Batch                       
          11             85             50            322
          HTML                             
          1             19              2             98
          -------------------------------------------------------------------------------
          SUM:                          
          2510         142085         173903         529677
          -------------------------------------------------------------------------------

          Here is command line example:
          Usage: cloc-1.56.pl [options] <file(s)/dir(s)> | <set 1> <set 2> | <report files>
          主站蜘蛛池模板: 方城县| 灵山县| 高碑店市| 东明县| 高平市| 乌审旗| 习水县| 阿城市| 常宁市| 巴塘县| 石景山区| 五常市| 饶河县| 平遥县| 离岛区| 永靖县| 宁夏| 湘潭市| 淮南市| 报价| 溆浦县| 玉山县| 夏河县| 石台县| 东乌珠穆沁旗| 延吉市| 镇巴县| 宣恩县| 盐池县| 抚顺市| 西林县| 贵德县| 朔州市| 全南县| 新乡市| 犍为县| 巫溪县| 晴隆县| 彭阳县| 镇康县| 沙洋县|