• 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
locs.py 12.3 KB