microsoft / ctsTraffic
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 98 files with 37,792 lines of code.
    • 7 very long files (15,696 lines of code)
    • 8 long files (5,645 lines of code)
    • 35 medium size files (12,322 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,749 lines of code)
    • 30 very small files (1,380 lines of code)
41% | 14% | 32% | 7% | 3%
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
cpp46% | 25% | 17% | 8% | 1%
h82% | 0% | 9% | 1% | 5%
hpp19% | 15% | 43% | 14% | 6%
vcxproj0% | 0% | 100% | 0% | 0%
filters0% | 0% | 53% | 0% | 46%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
SdkChanges100% | 0% | 0% | 0% | 0%
ctsTraffic28% | 15% | 39% | 11% | 5%
ctsPerf78% | 0% | 12% | 3% | 5%
MSTest/ctsIOPatternUnitTest_Client77% | 0% | 20% | 0% | 1%
MSTest/ctsIOPatternProtocolPolicyUnitTest77% | 0% | 20% | 0% | 1%
ctl27% | 12% | 34% | 18% | 6%
MSTest/ctsIOPatternStateUnitTest0% | 69% | 28% | 0% | 1%
MSTest/ctsSocketBrokerUnitTest0% | 67% | 31% | 0% | <1%
MSTest/ctsIOPatternUnitTest_Server0% | 63% | 34% | 0% | 2%
MSTest/ctsIOPatternRateLimitPolicyUnitTest0% | 60% | 39% | 0% | 0%
MSTest/ctsMediaStreamServerConnectedSocketUnitTest0% | 0% | 100% | 0% | 0%
MSTest/ctsSocketUnitTest0% | 0% | 100% | 0% | 0%
MSTest/ctsSocketStateUnitTest0% | 0% | 100% | 0% | 0%
MSTest/ctsMediaStreamSendBuffer0% | 0% | 72% | 27% | 0%
MSTest/ctsStatisticsUnitTest0% | 0% | 82% | 0% | 17%
Longest Files (Top 50)
File# lines# units
WbemDisp.h
in SdkChanges
5040 12
ctsConfig.cpp
in ctsTraffic
3623 79
ctsPerf.cpp
in ctsPerf
1736 28
ctsIOPatternUnitTest_Client.cpp
in MSTest/ctsIOPatternUnitTest_Client
1442 20
ctsIOPatternProtocolPolicyUnitTest.cpp
in MSTest/ctsIOPatternProtocolPolicyUnitTest
1427 23
ctWmiPerformance.hpp
in ctl
1401 36
ctsEstats.h
in ctsPerf
1027 53
ctsIOPatternStateUnitTest.cpp
in MSTest/ctsIOPatternStateUnitTest
933 16
ctsSocketBrokerUnitTest.cpp
in MSTest/ctsSocketBrokerUnitTest
824 18
ctsIOPattern.cpp
in ctsTraffic
811 20
ctsIOPatternUnitTest_Server.cpp
in MSTest/ctsIOPatternUnitTest_Server
714 20
ctSockaddr.hpp
in ctl
618 40
ctsRioIocp.cpp
in ctsTraffic
614 12
ctsIOPatternRateLimitPolicyUnitTest.cpp
in MSTest/ctsIOPatternRateLimitPolicyUnitTest
582 11
ctsIOPatternProtocolPolicy.hpp
in ctsTraffic
549 20
vcxproj
ctsTraffic.vcxproj
in ctsTraffic
488 -
ctsPrintStatus.hpp
in ctsTraffic
485 20
ctWmiVariant.hpp
in ctl
479 44
ctSocketExtensions.hpp
in ctl
473 24
vcxproj
ctsPerf.vcxproj
in ctsPerf
430 -
ctsIOPattern.h
in ctsTraffic
408 14
ctsMediaStreamServerConnectedSocketUnitTest.cpp
in MSTest/ctsMediaStreamServerConnectedSocketUnitTest
403 30
vcxproj
ctsMediaStreamSendBufferUnitTest.vcxproj
in MSTest/ctsMediaStreamSendBuffer
395 -
vcxproj
ctsSocketBrokerUnitTest.vcxproj
in MSTest/ctsSocketBrokerUnitTest
391 -
ctsIOPatternState.hpp
in ctsTraffic
387 12
ctsAcceptEx.cpp
in ctsTraffic
386 8
vcxproj
ctsSocketStateUnitTest.vcxproj
in MSTest/ctsSocketStateUnitTest
384 -
vcxproj
ctsIOPatternUnitTest_Client.vcxproj
in MSTest/ctsIOPatternUnitTest_Client
382 -
vcxproj
ctsIOPatternUnitTest_Server.vcxproj
in MSTest/ctsIOPatternUnitTest_Server
382 -
vcxproj
ctsMediaStreamServerConnectedSocketUnitTest.vcxproj
in MSTest/ctsMediaStreamServerConnectedSocketUnitTest
382 -
vcxproj
ctsIOPatternProtocolPolicyUnitTest.vcxproj
in MSTest/ctsIOPatternProtocolPolicyUnitTest
381 -
vcxproj
ctsIOPatternRateLimitPolicyUnitTest.vcxproj
in MSTest/ctsIOPatternRateLimitPolicyUnitTest
381 -
vcxproj
ctsSocketUnitTest.vcxproj
in MSTest/ctsSocketUnitTest
381 -
ctsMediaStreamServer.cpp
in ctsTraffic
381 10
vcxproj
ctsIOPatternStateUnitTest.vcxproj
in MSTest/ctsIOPatternStateUnitTest
380 -
vcxproj
ctsStatisticsUnitTest.vcxproj
in MSTest/ctsStatisticsUnitTest
380 -
ctsIOPatternMediaStream.cpp
in ctsTraffic
366 9
ctsMediaStreamClient.cpp
in ctsTraffic
358 5
ctsMediaStreamProtocol.hpp
in ctsTraffic
322 11
ctWmiInstance.hpp
in ctl
299 19
ctString.hpp
in ctl
281 24
ctsConfig.h
in ctsTraffic
278 3
ctsSendRecvIocp.cpp
in ctsTraffic
270 4
ctsStatistics.hpp
in ctsTraffic
253 17
ctsSocket.cpp
in ctsTraffic
246 15
filters
ctsTraffic.vcxproj.filters
in ctsTraffic
244 -
ctsSocketUnitTest.cpp
in MSTest/ctsSocketUnitTest
236 13
ctsSocketStateUnitTest.cpp
in MSTest/ctsSocketStateUnitTest
223 18
ctsSimpleAccept.cpp
in ctsTraffic
206 4
ctWmiClassObject.hpp
in ctl
201 2
Files With Most Units (Top 20)
File# lines# units
ctsConfig.cpp
in ctsTraffic
3623 79
ctsEstats.h
in ctsPerf
1027 53
ctWmiVariant.hpp
in ctl
479 44
ctSockaddr.hpp
in ctl
618 40
ctWmiPerformance.hpp
in ctl
1401 36
ctsMediaStreamServerConnectedSocketUnitTest.cpp
in MSTest/ctsMediaStreamServerConnectedSocketUnitTest
403 30
ctsPerf.cpp
in ctsPerf
1736 28
ctSocketExtensions.hpp
in ctl
473 24
ctString.hpp
in ctl
281 24
ctsIOPatternProtocolPolicyUnitTest.cpp
in MSTest/ctsIOPatternProtocolPolicyUnitTest
1427 23
ctsIOPatternUnitTest_Client.cpp
in MSTest/ctsIOPatternUnitTest_Client
1442 20
ctsIOPatternUnitTest_Server.cpp
in MSTest/ctsIOPatternUnitTest_Server
714 20
ctsIOPattern.cpp
in ctsTraffic
811 20
ctsIOPatternProtocolPolicy.hpp
in ctsTraffic
549 20
ctsPrintStatus.hpp
in ctsTraffic
485 20
ctWmiInstance.hpp
in ctl
299 19
ctsSocketBrokerUnitTest.cpp
in MSTest/ctsSocketBrokerUnitTest
824 18
ctsSocketStateUnitTest.cpp
in MSTest/ctsSocketStateUnitTest
223 18
ctsStatistics.hpp
in ctsTraffic
253 17
ctsIOPatternStateUnitTest.cpp
in MSTest/ctsIOPatternStateUnitTest
933 16
Files With Long Lines (Top 20)

There are 63 files with lines longer than 120 characters. In total, there are 1120 long lines.

File# lines# units# long lines
ctsIOPatternUnitTest_Client.cpp
in MSTest/ctsIOPatternUnitTest_Client
1442 20 123
WbemDisp.h
in SdkChanges
5040 12 83
ctsConfig.cpp
in ctsTraffic
3623 79 74
ctsIOPatternUnitTest_Server.cpp
in MSTest/ctsIOPatternUnitTest_Server
714 20 45
vcxproj
ctsIOPatternProtocolPolicyUnitTest.vcxproj
in MSTest/ctsIOPatternProtocolPolicyUnitTest
381 - 35
vcxproj
ctsIOPatternRateLimitPolicyUnitTest.vcxproj
in MSTest/ctsIOPatternRateLimitPolicyUnitTest
381 - 35
vcxproj
ctsIOPatternStateUnitTest.vcxproj
in MSTest/ctsIOPatternStateUnitTest
380 - 35
vcxproj
ctsIOPatternUnitTest_Client.vcxproj
in MSTest/ctsIOPatternUnitTest_Client
382 - 35
vcxproj
ctsIOPatternUnitTest_Server.vcxproj
in MSTest/ctsIOPatternUnitTest_Server
382 - 35
vcxproj
ctsMediaStreamSendBufferUnitTest.vcxproj
in MSTest/ctsMediaStreamSendBuffer
395 - 35
vcxproj
ctsMediaStreamServerConnectedSocketUnitTest.vcxproj
in MSTest/ctsMediaStreamServerConnectedSocketUnitTest
382 - 35
vcxproj
ctsSocketBrokerUnitTest.vcxproj
in MSTest/ctsSocketBrokerUnitTest
391 - 35
vcxproj
ctsSocketStateUnitTest.vcxproj
in MSTest/ctsSocketStateUnitTest
384 - 35
vcxproj
ctsSocketUnitTest.vcxproj
in MSTest/ctsSocketUnitTest
381 - 35
vcxproj
ctsStatisticsUnitTest.vcxproj
in MSTest/ctsStatisticsUnitTest
380 - 35
ctsIOPatternProtocolPolicyUnitTest.cpp
in MSTest/ctsIOPatternProtocolPolicyUnitTest
1427 23 34
ctsIOPattern.cpp
in ctsTraffic
811 20 34
ctsIOPatternStateUnitTest.cpp
in MSTest/ctsIOPatternStateUnitTest
933 16 32
ctsPrintStatus.hpp
in ctsTraffic
485 20 29
vcxproj
ctsTraffic.vcxproj
in ctsTraffic
488 - 27