microsoft / plcrashreporter
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 161 files with 19,136 lines of code.
    • 2 very long files (4,046 lines of code)
    • 5 long files (3,151 lines of code)
    • 17 medium size files (5,573 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,193 lines of code)
    • 121 very small files (4,173 lines of code)
21% | 16% | 29% | 11% | 21%
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
c52% | 9% | 23% | 6% | 8%
m0% | 33% | 34% | 8% | 22%
mm0% | 80% | 0% | 19% | 0%
cpp0% | 23% | 46% | 20% | 9%
h0% | 0% | 25% | 3% | 70%
proto0% | 0% | 100% | 0% | 0%
S0% | 0% | 100% | 0% | 0%
hpp0% | 0% | 20% | 60% | 19%
swift0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Dependencies88% | 0% | 11% | 0% | 0%
Source9% | 21% | 34% | 13% | 21%
include0% | 0% | 27% | 0% | 72%
Other Sources0% | 0% | 0% | 51% | 48%
Tools0% | 0% | 0% | 24% | 75%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
protobuf-c.c
in Dependencies/protobuf-c/protobuf-c
2667 3
1379 -
722 21
707 15
678 26
542 1
502 1
489 3
488 17
473 8
433 10
403 3
398 10
364 1
protobuf-c.h
in Dependencies/protobuf-c/protobuf-c
336 -
proto
291 -
278 10
245 7
240 -
237 20
232 -
232 -
222 4
212 13
181 -
180 2
179 4
178 11
160 11
142 10
137 2
135 7
130 9
127 4
122 3
107 6
107 -
main.m
in Other Sources/Crash Demo
105 4
102 8
PLCrashWindowController.m
in Tools/CrashViewer/CrashViewer
101 -
100 -
main.c
in Tools/CrashViewer/CrashReporterQuicklook
100 4
PLAsyncTask.m
in Tools/CrashViewer/CrashViewer
100 -
98 1
96 8
94 2
92 1
87 -
86 1
83 -
Files With Most Units (Top 50)
File# lines# units
678 26
722 21
237 20
488 17
707 15
212 13
160 11
178 11
142 10
278 10
398 10
433 10
130 9
102 8
473 8
96 8
245 7
135 7
107 6
77 5
57 5
main.m
in Other Sources/Crash Demo
105 4
222 4
127 4
179 4
main.c
in Tools/CrashViewer/CrashReporterQuicklook
100 4
protobuf-c.c
in Dependencies/protobuf-c/protobuf-c
2667 3
main.m
in Other Sources/plcrashutil
82 3
122 3
489 3
403 3
18 3
74 3
94 2
180 2
137 2
44 2
GeneratePreviewForURL.m
in Tools/CrashViewer/CrashReporterQuicklook
25 2
GenerateThumbnailForURL.c
in Tools/CrashViewer/CrashReporterQuicklook
12 2
44 2
fuzz-main.m
in Other Sources/Fuzz
17 1
502 1
98 1
92 1
86 1
60 1
42 1
542 1
364 1
34 1
Files With Long Lines (Top 50)

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

File# lines# units# long lines
722 21 57
678 26 37
542 1 35
489 3 32
488 17 31
473 8 28
707 15 19
278 10 18
433 10 13
222 4 12
178 11 12
160 11 10
130 9 10
398 10 10
137 2 10
74 - 9
502 1 8
127 4 8
76 - 8
403 3 8
proto
291 - 8
94 2 7
180 2 7
34 - 7
364 1 7
main.c
in Tools/CrashViewer/CrashReporterQuicklook
100 4 7
107 - 6
50 - 5
232 - 5
1379 - 5
50 - 5
232 - 5
57 5 4
86 1 4
102 8 4
26 - 4
55 - 3
107 6 3
59 - 3
135 7 3
main.m
in Other Sources/Crash Demo
105 4 2
237 20 2
122 3 2
77 5 2
34 - 2
78 - 2
51 - 2
179 4 2
GeneratePreviewForURL.m
in Tools/CrashViewer/CrashReporterQuicklook
25 2 2
GenerateThumbnailForURL.c
in Tools/CrashViewer/CrashReporterQuicklook
12 2 2