awslabs / aws-fpga-app-notes
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 285 files with 21,330 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,308 lines of code)
    • 26 medium size files (7,169 lines of codeclsfd_ftr_w_mp_ins)
    • 46 small files (6,027 lines of code)
    • 211 very small files (6,826 lines of code)
0% | 6% | 33% | 28% | 32%
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
h0% | 27% | 0% | 8% | 63%
cpp0% | 3% | 41% | 31% | 24%
yaml0% | 0% | 100% | 0% | 0%
c0% | 0% | 0% | 82% | 17%
hpp0% | 0% | 0% | 0% | 100%
cl0% | 0% | 0% | 0% | 100%
launch0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
pb0% | 0% | 0% | 0% | 100%
tcl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
reInvent18_Developer_Workshop/filter2D0% | 36% | 25% | 6% | 31%
reInvent19_Developer_Workshop/modules0% | 3% | 30% | 32% | 33%
NYC_Summit18_Developer_Workshop/workspace0% | 0% | 90% | 0% | 9%
NYC_Summit18_Developer_Workshop/idct0% | 0% | 99% | 0% | <1%
FPGA_Developer_AMI_Build_Recipe_AL2/ansible0% | 0% | 100% | 0% | 0%
reInvent18_Developer_Workshop/helloworld_c0% | 0% | 60% | 0% | 39%
reInvent18_Developer_Workshop/hostcode_opt0% | 0% | 0% | 32% | 67%
Using-PCIM-Port0% | 0% | 0% | 100% | 0%
Using-PCIe-Write-Combining0% | 0% | 0% | 100% | 0%
Using-PCIe-Interrupts0% | 0% | 0% | 100% | 0%
reInvent18_Developer_Workshop/helloworld_ocl0% | 0% | 0% | 0% | 100%
NYC_Summit18_Developer_Workshop/helloworld_ocl0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
hls_video_mem.h
in reInvent18_Developer_Workshop/filter2D/src/kernel
776 44
idct.cpp
in reInvent19_Developer_Workshop/modules/module_01/idct/src
532 12
idct.cpp
in NYC_Summit18_Developer_Workshop/idct/src
489 11
idct.cpp
in NYC_Summit18_Developer_Workshop/workspace/IDCT/src
489 11
host.cpp
in reInvent18_Developer_Workshop/filter2D/src/host
274 4
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/addi_k
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/fixedpoint
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/localbuf
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/multicu
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/baseline
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/dataflow
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/addi_k
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/fixedpoint
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/localbuf
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/multicu
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/baseline
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/dataflow
269 6
xilinx_playbook.yaml
in FPGA_Developer_AMI_Build_Recipe_AL2/ansible
264 -
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/split_buffer
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/generic_buffer
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/sw_overlap
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/single_buffer
264 6
cmdlineparser.cpp
in reInvent18_Developer_Workshop/filter2D/src/host
261 13
xcl2.cpp
in reInvent18_Developer_Workshop/helloworld_c/src
212 6
krnl_idct.cpp
in reInvent19_Developer_Workshop/modules/module_01/idct/src
212 7
krnl_idct.cpp
in NYC_Summit18_Developer_Workshop/idct/src
210 7
krnl_idct.cpp
in NYC_Summit18_Developer_Workshop/workspace/IDCT/src
210 7
atg_driver.c
in Using-PCIM-Port
197 9
wc_perf.c
in Using-PCIe-Write-Combining
171 6
run_sw_overlap.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
146 1
run_fpga.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/generic_buffer
144 1
run_split_buffer.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
143 1
run_fpga.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/sw_overlap
142 1
run_generic_buffer.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
141 1
ApiHandle.h
in reInvent18_Developer_Workshop/hostcode_opt/srcCommon
140 1
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/cpu_src
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/addi_k
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/fixedpoint
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/localbuf
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/multicu
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/baseline
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/dataflow
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/addi_k
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/fixedpoint
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/localbuf
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/multicu
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/baseline
140 2
common.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/dataflow
140 2
main.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
134 3
Files With Most Units (Top 20)
File# lines# units
hls_video_mem.h
in reInvent18_Developer_Workshop/filter2D/src/kernel
776 44
cmdlineparser.cpp
in reInvent18_Developer_Workshop/filter2D/src/host
261 13
idct.cpp
in reInvent19_Developer_Workshop/modules/module_01/idct/src
532 12
idct.cpp
in NYC_Summit18_Developer_Workshop/idct/src
489 11
idct.cpp
in NYC_Summit18_Developer_Workshop/workspace/IDCT/src
489 11
atg_driver.c
in Using-PCIM-Port
197 9
logger.cpp
in reInvent18_Developer_Workshop/filter2D/src/host
129 7
krnl_idct.cpp
in NYC_Summit18_Developer_Workshop/idct/src
210 7
krnl_idct.cpp
in NYC_Summit18_Developer_Workshop/workspace/IDCT/src
210 7
krnl_idct.cpp
in reInvent19_Developer_Workshop/modules/module_01/idct/src
212 7
xcl2.cpp
in reInvent18_Developer_Workshop/helloworld_c/src
212 6
wc_perf.c
in Using-PCIe-Write-Combining
171 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_01/helloworld/src
74 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/split_buffer
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/generic_buffer
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/sw_overlap
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/single_buffer
264 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/addi_k
269 6
xcl2.cpp
in reInvent19_Developer_Workshop/modules/module_03/design/src/fixedpoint
269 6
Files With Long Lines (Top 20)

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

File# lines# units# long lines
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/cpu_src
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/src/addi_k
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/src/fixedpoint
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/src/localbuf
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/src/multicu
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/src/baseline
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/src/dataflow
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/addi_k
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/fixedpoint
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/localbuf
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/multicu
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/baseline
31 - 19
filters.h
in reInvent19_Developer_Workshop/modules/module_03/design/reference-files/dataflow
31 - 19
run_split_buffer.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
143 1 11
run_fpga.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/generic_buffer
144 1 11
run_generic_buffer.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
141 1 9
run_sw_overlap.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
146 1 9
run_fpga.cpp
in reInvent19_Developer_Workshop/modules/module_02/src/sw_overlap
142 1 9
host.cpp
in reInvent18_Developer_Workshop/filter2D/src/host
274 4 8
run_single_buffer.cpp
in reInvent19_Developer_Workshop/modules/module_02/reference_files
106 1 6