1. 19 Feb, 2019 1 commit
  2. 04 Feb, 2019 1 commit
    • Sigurd Schneider's avatar
      [tools] Also count input bytes in tools/locs.py · 40633b4f
      Sigurd Schneider authored
      As Marja suggested, this CL changes tools/locs.py in such a way that
      it also counts the bytes in the input file and the output file.
      
      Example output now looks similar to this:
      
      Processed 1,526 files in 24.58 sec.
      gen         (   31 files):    94,507 LoC (  4,972 kB) to    2,839,311 LoC (183,777 kB) (   30x)
      src         (  630 files):   371,499 LoC ( 14,743 kB) to   53,707,841 LoC (  3,155 MB) (  145x)
      test        (  381 files):   492,861 LoC ( 25,372 kB) to   36,885,988 LoC (  2,194 MB) (   75x)
      third_party (  433 files):   239,155 LoC (  8,683 kB) to    9,713,872 LoC (412,829 kB) (   41x)
      total       ( 1526 files): 1,212,675 LoC ( 54,242 kB) to  104,133,982 LoC (  5,973 MB) (   86x)
      
      
      Change-Id: I1ff5e752ee3a96d388a4393c2592aec68f834000
      Notry: true
      Reviewed-on: https://chromium-review.googlesource.com/c/1450113
      Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
      Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#59322}
      40633b4f
  3. 17 Dec, 2018 1 commit
  4. 27 Nov, 2018 1 commit
  5. 26 Nov, 2018 1 commit
    • Sigurd Schneider's avatar
      [tools] Add script to count lines of code · 53dcadfe
      Sigurd Schneider authored
      This script counts lines of code before and after preprocessor expansion.
      When running:
        tools/locs.py --build-dir out.gn/repro --smallest --largest --worst
      in the v8 directory, it reports:
      
      Processed 1,520 files in 24.62 sec.
      src         (  625 files):   365,679 to   53,468,383 ( 146.22x)
      third_party (  432 files):   239,081 to    9,502,094 (  39.74x)
      gen         (   19 files):    64,040 to    1,415,287 (  22.10x)
      total       ( 1520 files): 1,173,349 to  102,831,949 (  87.64x)
      test        (  392 files):   489,865 to   37,476,036 (  76.50x)
      Largest 3 files after expansion:
         33,495 to      140,401 (   4.19x) gen/torque-generated/builtins-array-from-dsl-gen.cc
        100,014 to      140,111 (   1.40x) ../../test/cctest/gay-precision.cc
        100,014 to      140,110 (   1.40x) ../../test/cctest/gay-shortest.cc
      Worst expansion (3 files):
              6 to      100,826 (14403.71x) ../../test/fuzzer/wasm-data-section.cc
              6 to      100,826 (14403.71x) ../../test/fuzzer/wasm-function-sigs-section.cc
              6 to      100,826 (14403.71x) ../../test/fuzzer/wasm-globals-section.cc
      Smallest 3 input files:
              0 to            0 (   0.00x) ../../testing/gtest/empty.cc
              1 to            0 (   0.00x) ../../src/x64/simulator-x64.cc
              4 to        4,423 ( 884.60x) ../../buildtools/third_party/libc++/trunk/src/utility.cpp
      
      Notry: true
      Change-Id: Ie1da942463d9e6a84338a9bd57d9ddc46d2856dc
      Reviewed-on: https://chromium-review.googlesource.com/c/1349571
      Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
      Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#57822}
      53dcadfe