golang / debug
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 21 files with 4,806 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,810 lines of code)
    • 5 medium size files (1,955 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (738 lines of code)
    • 8 very small files (303 lines of code)
0% | 37% | 40% | 15% | 6%
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
go0% | 37% | 40% | 15% | 6%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cmd/viewcore0% | 65% | 34% | 0% | 0%
internal/gocore0% | 21% | 60% | 11% | 6%
internal/core0% | 59% | 0% | 34% | 6%
dwtest0% | 0% | 0% | 100% | 0%
internal/testenv0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
main.go
in cmd/viewcore
739 25
process.go
in internal/gocore
558 15
process.go
in internal/core
513 25
dwarf.go
in internal/gocore
491 9
type.go
in internal/gocore
477 18
html.go
in cmd/viewcore
394 7
dominator.go
in internal/gocore
304 12
object.go
in internal/gocore
289 17
mapping.go
in internal/core
189 11
module.go
in internal/gocore
152 10
dwtest.go
in dwtest
149 12
region.go
in internal/gocore
138 21
read.go
in internal/core
110 13
testenv.go
in internal/testenv
91 8
reverse.go
in internal/gocore
88 3
goroutine.go
in internal/gocore
61 11
address.go
in internal/core
23 5
thread.go
in internal/core
19 4
process_unix.go
in internal/core
10 1
root.go
in internal/gocore
10 -
cfg
codereview.cfg
in root
1 -
Files With Most Units (Top 19)
File# lines# units
main.go
in cmd/viewcore
739 25
process.go
in internal/core
513 25
region.go
in internal/gocore
138 21
type.go
in internal/gocore
477 18
object.go
in internal/gocore
289 17
process.go
in internal/gocore
558 15
read.go
in internal/core
110 13
dominator.go
in internal/gocore
304 12
dwtest.go
in dwtest
149 12
mapping.go
in internal/core
189 11
goroutine.go
in internal/gocore
61 11
module.go
in internal/gocore
152 10
dwarf.go
in internal/gocore
491 9
testenv.go
in internal/testenv
91 8
html.go
in cmd/viewcore
394 7
address.go
in internal/core
23 5
thread.go
in internal/core
19 4
reverse.go
in internal/gocore
88 3
process_unix.go
in internal/core
10 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
html.go
in cmd/viewcore
394 7 19
main.go
in cmd/viewcore
739 25 2
process.go
in internal/core
513 25 2
mapping.go
in internal/core
189 11 1
region.go
in internal/gocore
138 21 1
dwarf.go
in internal/gocore
491 9 1
type.go
in internal/gocore
477 18 1