microsoft / ShaderConductor
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 17 files with 2,429 lines of code.
    • 1 very long files (1,056 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (467 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (504 lines of code)
    • 11 very small files (402 lines of code)
43% | 0% | 19% | 20% | 16%
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
cpp79% | 0% | 0% | 14% | 6%
yml0% | 0% | 87% | 0% | 12%
py0% | 0% | 100% | 0% | 0%
hpp0% | 0% | 0% | 100% | 0%
cs0% | 0% | 0% | 65% | 34%
cmake0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
hlsl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Source/Core100% | 0% | 0% | 0% | 0%
ROOT0% | 0% | 100% | 0% | 0%
Include/ShaderConductor0% | 0% | 0% | 100% | 0%
Source/Tools0% | 0% | 0% | 100% | 0%
Source/Wrapper0% | 0% | 0% | 34% | 65%
External0% | 0% | 0% | 0% | 100%
CI/AzurePipelines0% | 0% | 0% | 0% | 100%
Longest Files (Top 17)
File# lines# units
ShaderConductor.cpp
in Source/Core
1056 28
azure-pipelines.yml
in root
235 -
BuildAll.py
in root
232 12
ShaderConductor.hpp
in Include/ShaderConductor
192 1
ShaderConductorCmd.cpp
in Source/Tools
189 1
Wrapper.cs
in Source/Wrapper
123 1
Native.cpp
in Source/Wrapper
83 4
cmake
DirectXShaderCompiler.cmake
in External
76 -
Program.cs
in Source/Wrapper
64 1
Native.h
in Source/Wrapper
53 -
ContinuousBuild.yml
in CI/AzurePipelines
33 -
hlsl
shader.hlsl
in Source/Wrapper
32 -
cmake
SPIRV-Tools.cmake
in External
19 -
cmake
SPIRV-Cross.cmake
in External
14 -
cmake
googletest.cmake
in External
12 -
cmake
SPIRV-Header.cmake
in External
9 -
cmake
cxxopts.cmake
in External
7 -
Files With Most Units (Top 7)
File# lines# units
ShaderConductor.cpp
in Source/Core
1056 28
BuildAll.py
in root
232 12
Native.cpp
in Source/Wrapper
83 4
ShaderConductor.hpp
in Include/ShaderConductor
192 1
ShaderConductorCmd.cpp
in Source/Tools
189 1
Program.cs
in Source/Wrapper
64 1
Wrapper.cs
in Source/Wrapper
123 1
Files With Long Lines (Top 10)

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

File# lines# units# long lines
ShaderConductor.cpp
in Source/Core
1056 28 23
cmake
DirectXShaderCompiler.cmake
in External
76 - 12
Native.cpp
in Source/Wrapper
83 4 4
BuildAll.py
in root
232 12 3
ShaderConductorCmd.cpp
in Source/Tools
189 1 2
cmake
SPIRV-Cross.cmake
in External
14 - 1
cmake
SPIRV-Tools.cmake
in External
19 - 1
ShaderConductor.hpp
in Include/ShaderConductor
192 1 1
Native.h
in Source/Wrapper
53 - 1
Wrapper.cs
in Source/Wrapper
123 1 1