microsoft / pmwcas
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 40 files with 6,572 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,969 lines of code)
    • 6 medium size files (2,111 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,863 lines of code)
    • 18 very small files (629 lines of code)
0% | 29% | 32% | 28% | 9%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cc0% | 46% | 35% | 11% | 7%
h0% | 14% | 29% | 44% | 11%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/environment0% | 67% | 20% | 10% | <1%
src/mwcas0% | 56% | 32% | 10% | 0%
src/benchmarks0% | 0% | 69% | 24% | 6%
src/double-linked-list0% | 0% | 100% | 0% | 0%
src/common0% | 0% | 0% | 76% | 23%
include0% | 0% | 0% | 89% | 10%
src/util0% | 0% | 0% | 46% | 53%
Longest Files (Top 40)
File# lines# units
environment_windows.cc
in src/environment
766 47
mwcas.cc
in src/mwcas
694 18
environment_windows.h
in src/environment
509 23
doubly_linked_list_benchmark.cc
in src/benchmarks
432 8
doubly_linked_list.cc
in src/double-linked-list
416 7
mwcas.h
in src/mwcas
400 13
environment_linux.h
in src/environment
391 43
mwcas_benchmark.cc
in src/benchmarks
268 10
doubly_linked_list.h
in src/double-linked-list
204 6
environment_linux.cc
in src/environment
197 15
status.h
in include
168 37
atomics.h
in src/util
156 15
garbage_list.h
in src/common
154 8
epoch.cc
in src/common
152 14
epoch.h
in src/common
137 7
random_number_generator.h
in src/util
137 11
environment.h
in include
131 3
benchmark.h
in src/benchmarks
131 6
garbage_list_unsafe.h
in src/common
128 5
metrics.h
in src/mwcas
128 13
slice.h
in include
125 13
benchmark_linux.h
in src/benchmarks
119 6
status.cc
in src/util
85 1
core_local.h
in src/util
77 3
nvram.h
in src/util
73 3
environment_internal.cc
in src/common
58 4
environment_internal.h
in src/common
49 2
mwcas_shm_server.cc
in src/benchmarks
45 1
auto_ptr.h
in src/util
38 4
macros.h
in src/util
33 -
allocator_internal.h
in src/common
27 1
pmwcas_internal.cc
in src/common
20 3
allocator.h
in include
18 -
mwcas_benchmark.h
in src/benchmarks
18 -
hash.h
in src/util
18 2
allocator_internal.cc
in src/common
17 1
async.h
in include
16 1
pmwcas.h
in include
15 -
environment.cc
in src/environment
14 1
nvram.cc
in src/util
8 -
Files With Most Units (Top 20)
File# lines# units
environment_windows.cc
in src/environment
766 47
environment_linux.h
in src/environment
391 43
status.h
in include
168 37
environment_windows.h
in src/environment
509 23
mwcas.cc
in src/mwcas
694 18
environment_linux.cc
in src/environment
197 15
atomics.h
in src/util
156 15
epoch.cc
in src/common
152 14
slice.h
in include
125 13
metrics.h
in src/mwcas
128 13
mwcas.h
in src/mwcas
400 13
random_number_generator.h
in src/util
137 11
mwcas_benchmark.cc
in src/benchmarks
268 10
doubly_linked_list_benchmark.cc
in src/benchmarks
432 8
garbage_list.h
in src/common
154 8
epoch.h
in src/common
137 7
doubly_linked_list.cc
in src/double-linked-list
416 7
benchmark.h
in src/benchmarks
131 6
benchmark_linux.h
in src/benchmarks
119 6
doubly_linked_list.h
in src/double-linked-list
204 6
Files With Long Lines (Top 0)

There are 0 files with lines longer than 120 characters. In total, there are 0 long lines.

File# lines# units# long lines