microsoft / diskspd
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 69 files with 24,256 lines of code.
    • 6 very long files (14,768 lines of code)
    • 2 long files (1,860 lines of code)
    • 8 medium size files (3,149 lines of codeclsfd_ftr_w_mp_ins)
    • 21 small files (3,168 lines of code)
    • 32 very small files (1,311 lines of code)
60% | 7% | 12% | 13% | 5%
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
psm182% | 10% | 5% | 2% | 0%
cpp72% | 11% | 10% | 3% | 1%
h79% | 0% | 0% | 8% | 12%
ps10% | 0% | 46% | 32% | 21%
vcxproj0% | 0% | 0% | 100% | 0%
psd10% | 0% | 0% | 100% | 0%
ps1xml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Frameworks56% | 6% | 18% | 11% | 7%
IORequestGenerator80% | 0% | 14% | 0% | 4%
Common52% | 29% | 0% | 10% | 7%
CmdLineParser100% | 0% | 0% | 0% | 0%
XmlProfileParser100% | 0% | 0% | 0% | 0%
ResultParser100% | 0% | 0% | 0% | 0%
XmlResultParser0% | 0% | 100% | 0% | 0%
diskspd_vs0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 100% | 0%
CmdRequestCreator0% | 0% | 0% | 100% | 0%
Longest Files (Top 50)
File# lines# units
VMFleet.psm1
in Frameworks/VMFleet
7146 -
IORequestGenerator.cpp
in IORequestGenerator
2018 29
Common.h
in Common
1707 187
CmdLineParser.cpp
in CmdLineParser
1602 10
XmlProfileParser.cpp
in XmlProfileParser
1291 22
ResultParser.cpp
in ResultParser
1004 19
Common.cpp
in Common
973 28
Profile.psm1
in Frameworks/VMFleet
887 -
test-clusterhealth.ps1
in Frameworks/VMFleet1.0
495 -
XmlResultParser.cpp
in XmlResultParser
470 14
WatchCluster.psm1
in Frameworks/VMFleet
455 -
watch-cluster.ps1
in Frameworks/VMFleet1.0
439 -
start-sweep.ps1
in Frameworks/VMFleet1.0
410 -
etw.cpp
in IORequestGenerator
368 12
create-vmfleet.ps1
in Frameworks/VMFleet1.0
286 -
get-cluspc.ps1
in Frameworks/VMFleet1.0
226 -
Histogram.h
in Common
186 19
Process-DiskSpd.ps1
in root
185 -
master.ps1
in Frameworks/VMFleet1.0
184 -
WatchCPU.psm1
in Frameworks/VMFleet
179 -
watch-cpu.ps1
in Frameworks/VMFleet1.0
170 -
vcxproj
CmdRequestCreator.vcxproj
in diskspd_vs/CmdRequestCreator
166 -
vcxproj
XmlResultParser.vcxproj
in diskspd_vs/XmlResultParser
165 -
check-outlier.ps1
in Frameworks/VMFleet1.0
163 -
sweep-cputarget.ps1
in Frameworks/VMFleet1.0
158 -
vcxproj
IORequestGenerator.vcxproj
in diskspd_vs/IORequestGenerator
154 -
IoBucketizer.cpp
in Common
153 11
vcxproj
XmlProfileParser.vcxproj
in diskspd_vs/XmlProfileParser
151 -
vcxproj
CmdLineParser.vcxproj
in diskspd_vs/CmdLineParser
148 -
vcxproj
ResultParser.vcxproj
in diskspd_vs/ResultParser
148 -
VMFleet.psd1
in Frameworks/VMFleet
147 -
vcxproj
Common.vcxproj
in diskspd_vs/Common
140 -
set-vmfleet.ps1
in Frameworks/VMFleet1.0
128 -
CmdRequestCreator.cpp
in CmdRequestCreator
121 4
get-linfit.ps1
in Frameworks/VMFleet1.0
112 -
update-csv.ps1
in Frameworks/VMFleet1.0
107 -
check-vmfleet.ps1
in Frameworks/VMFleet1.0
103 -
destroy-vmfleet.ps1
in Frameworks/VMFleet1.0
88 -
ThroughputMeter.cpp
in IORequestGenerator
80 5
VMFleet.format.ps1xml
in Frameworks/VMFleet
75 -
check-pause.ps1
in Frameworks/VMFleet1.0
70 -
run.ps1
in Frameworks/VMFleet1.0
69 -
analyze-cputarget.ps1
in Frameworks/VMFleet1.0
66 -
get-log.ps1
in Frameworks/VMFleet1.0
63 -
install-vmfleet.ps1
in Frameworks/VMFleet1.0
59 -
run-sweeptemplate.ps1
in Frameworks/VMFleet1.0
58 -
demo.ps1
in Frameworks/VMFleet1.0
53 -
OverlappedQueue.cpp
in IORequestGenerator
44 3
IORequestGenerator.h
in Common
43 -
set-storageqos.ps1
in Frameworks/VMFleet1.0
42 -
Files With Most Units (Top 14)
File# lines# units
Common.h
in Common
1707 187
IORequestGenerator.cpp
in IORequestGenerator
2018 29
Common.cpp
in Common
973 28
XmlProfileParser.cpp
in XmlProfileParser
1291 22
Histogram.h
in Common
186 19
ResultParser.cpp
in ResultParser
1004 19
XmlResultParser.cpp
in XmlResultParser
470 14
etw.cpp
in IORequestGenerator
368 12
IoBucketizer.cpp
in Common
153 11
CmdLineParser.cpp
in CmdLineParser
1602 10
ThroughputMeter.cpp
in IORequestGenerator
80 5
CmdRequestCreator.cpp
in CmdRequestCreator
121 4
OverlappedQueue.cpp
in IORequestGenerator
44 3
CmdLineParser.h
in Common
32 1
Files With Long Lines (Top 20)

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

File# lines# units# long lines
VMFleet.psm1
in Frameworks/VMFleet
7146 - 143
WatchCluster.psm1
in Frameworks/VMFleet
455 - 50
IORequestGenerator.cpp
in IORequestGenerator
2018 29 47
watch-cluster.ps1
in Frameworks/VMFleet1.0
439 - 46
Common.cpp
in Common
973 28 44
CmdLineParser.cpp
in CmdLineParser
1602 10 40
test-clusterhealth.ps1
in Frameworks/VMFleet1.0
495 - 23
XmlResultParser.cpp
in XmlResultParser
470 14 18
XmlProfileParser.cpp
in XmlProfileParser
1291 22 10
vcxproj
CmdRequestCreator.vcxproj
in diskspd_vs/CmdRequestCreator
166 - 8
Common.h
in Common
1707 187 7
Profile.psm1
in Frameworks/VMFleet
887 - 7
VMFleet.psd1
in Frameworks/VMFleet
147 - 7
ResultParser.cpp
in ResultParser
1004 19 7
check-outlier.ps1
in Frameworks/VMFleet1.0
163 - 5
create-vmfleet.ps1
in Frameworks/VMFleet1.0
286 - 5
set-vmfleet.ps1
in Frameworks/VMFleet1.0
128 - 4
sweep-cputarget.ps1
in Frameworks/VMFleet1.0
158 - 4
vcxproj
CmdLineParser.vcxproj
in diskspd_vs/CmdLineParser
148 - 4
vcxproj
Common.vcxproj
in diskspd_vs/Common
140 - 4