microsoft / ApplicationInsights-JS
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 287 files with 25,357 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (3,485 lines of code)
    • 27 medium size files (7,922 lines of codeclsfd_ftr_w_mp_ins)
    • 63 small files (8,480 lines of code)
    • 192 very small files (5,470 lines of code)
0% | 13% | 31% | 33% | 21%
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
ts0% | 13% | 35% | 24% | 26%
psm10% | 86% | 0% | 13% | 0%
js0% | 10% | 36% | 47% | 6%
css0% | 0% | 100% | 0% | 0%
ps10% | 0% | 0% | 68% | 31%
tsx0% | 0% | 0% | 70% | 29%
html0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
extensions/applicationinsights-dependencies-js0% | 65% | 20% | 10% | 4%
common/publish0% | 86% | 0% | 13% | 0%
channels/applicationinsights-channel-js0% | 43% | 29% | 16% | 10%
extensions/applicationinsights-analytics-js0% | 55% | 0% | 36% | 7%
ROOT0% | 100% | 0% | 0% | 0%
shared/AppInsightsCore0% | 0% | 42% | 28% | 28%
extensions/applicationinsights-debugplugin-js0% | 0% | 57% | 32% | 9%
tools/chrome-debug-extension0% | 0% | 35% | 43% | 21%
common/scripts0% | 0% | 84% | 0% | 15%
shared/AppInsightsCommon0% | 0% | 28% | 25% | 46%
extensions/applicationinsights-clickanalytics-js0% | 0% | 29% | 32% | 38%
tools/release-tools0% | 0% | 70% | 17% | 12%
AISKU/src0% | 0% | 52% | 29% | 17%
AISKU/snippet0% | 0% | 100% | 0% | 0%
tools/rollup-es30% | 0% | 30% | 35% | 34%
tools/updateDistEsm0% | 0% | 100% | 0% | 0%
extensions/applicationinsights-properties-js0% | 0% | 0% | 87% | 12%
extensions/applicationinsights-perfmarkmeasure-js0% | 0% | 0% | 75% | 24%
tools/shims0% | 0% | 0% | 74% | 25%
extensions/applicationinsights-react-native0% | 0% | 0% | 95% | 4%
AISKU/scripts0% | 0% | 0% | 71% | 28%
extensions/applicationinsights-react-js0% | 0% | 0% | 52% | 47%
AISKU0% | 0% | 0% | 100% | 0%
tools/subResourceIntegrity0% | 0% | 0% | 100% | 0%
AISKULight0% | 0% | 0% | 60% | 39%
scripts0% | 0% | 0% | 58% | 41%
tools/rollup-plugin-uglify3-js0% | 0% | 0% | 0% | 100%
AISKULight/dist-history0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ajax.ts
in extensions/applicationinsights-dependencies-js/src
825 50
AzureStorageHelper.psm1
in common/publish/AzureStorageHelper
786 -
Sender.ts
in channels/applicationinsights-channel-js/src
735 25
ApplicationInsights.ts
in extensions/applicationinsights-analytics-js/src/JavaScriptSDK
622 27
gruntfile.js
in root
517 4
Exception.ts
in shared/AppInsightsCommon/src/Telemetry
443 27
setVersion.js
in tools/release-tools
423 12
HelperFuncs.ts
in shared/AppInsightsCore/src/JavaScriptSDK
397 44
helpers.ts
in tools/chrome-debug-extension/src
389 14
install-run.js
in common/scripts
386 19
install-run-silent.js
in common/scripts
384 19
helpers.ts
in extensions/applicationinsights-debugplugin-js/src/components
384 14
styleNodeSrc.ts
in extensions/applicationinsights-debugplugin-js/src/components
374 -
Initialization.ts
in AISKU/src
339 27
popup.css
in tools/chrome-debug-extension/styles
336 -
DebugPlugin.ts
in extensions/applicationinsights-debugplugin-js/src
290 12
CoreUtils.ts
in shared/AppInsightsCore/src/JavaScriptSDK
278 19
session.ts
in tools/chrome-debug-extension/src
273 11
EnvelopeCreator.ts
in channels/applicationinsights-channel-js/src
270 13
snippet.js
in AISKU/snippet
263 20
ajaxRecord.ts
in extensions/applicationinsights-dependencies-js/src
258 8
CookieMgr.ts
in shared/AppInsightsCore/src/JavaScriptSDK
256 12
DomContentHandler.ts
in extensions/applicationinsights-clickanalytics-js/src/handlers
242 13
Util.ts
in shared/AppInsightsCommon/src
241 8
SendBuffer.ts
in channels/applicationinsights-channel-js/src
221 18
EnvUtils.ts
in shared/AppInsightsCore/src/JavaScriptSDK
221 27
Dashboard.ts
in extensions/applicationinsights-debugplugin-js/src/components
216 13
Es3Tokens.ts
in tools/rollup-es3/src/es3
215 -
Utils.ts
in extensions/applicationinsights-clickanalytics-js/src/common
214 22
BaseCore.ts
in shared/AppInsightsCore/src/JavaScriptSDK
204 13
updateDistEsm.js
in tools/updateDistEsm
204 3
rollup.config.js
in tools/chrome-debug-extension
201 -
TsLibShims.ts
in tools/shims/src
199 18
ApplicationInsightsDeprecated.ts
in AISKU/src
192 16
DataSanitizer.ts
in shared/AppInsightsCommon/src/Telemetry/Common
180 11
InstrumentHooks.ts
in shared/AppInsightsCore/src/JavaScriptSDK
180 12
DiagnosticLogger.ts
in shared/AppInsightsCore/src/JavaScriptSDK
176 17
PerfManager.ts
in shared/AppInsightsCore/src/JavaScriptSDK
167 9
telemetryViewerPopup.tsx
in tools/chrome-debug-extension/src
166 7
PageViewManager.ts
in extensions/applicationinsights-analytics-js/src/JavaScriptSDK/Telemetry
165 3
ReactNativePlugin.ts
in extensions/applicationinsights-react-native/src
165 11
Session.ts
in extensions/applicationinsights-properties-js/src/Context
160 8
TelemetryContext.ts
in extensions/applicationinsights-properties-js/src
159 12
StorageHelperFuncs.ts
in shared/AppInsightsCommon/src
158 13
eventTable.tsx
in tools/chrome-debug-extension/src/components
151 1
telemetryViewer.tsx
in tools/chrome-debug-extension/src/components
148 1
Serializer.ts
in channels/applicationinsights-channel-js/src
145 5
rollup.config.js
in extensions/applicationinsights-clickanalytics-js
143 1
rollup.config.js
in extensions/applicationinsights-debugplugin-js
143 1
ProcessTelemetryContext.ts
in shared/AppInsightsCore/src/JavaScriptSDK
142 4
Files With Most Units (Top 20)
File# lines# units
ContextTagKeys.ts
in shared/AppInsightsCommon/src/Interfaces/Contracts/Generated
137 60
ajax.ts
in extensions/applicationinsights-dependencies-js/src
825 50
HelperFuncs.ts
in shared/AppInsightsCore/src/JavaScriptSDK
397 44
Initialization.ts
in AISKU/src
339 27
ApplicationInsights.ts
in extensions/applicationinsights-analytics-js/src/JavaScriptSDK
622 27
Exception.ts
in shared/AppInsightsCommon/src/Telemetry
443 27
EnvUtils.ts
in shared/AppInsightsCore/src/JavaScriptSDK
221 27
Sender.ts
in channels/applicationinsights-channel-js/src
735 25
Utils.ts
in extensions/applicationinsights-clickanalytics-js/src/common
214 22
snippet.js
in AISKU/snippet
263 20
install-run-silent.js
in common/scripts
384 19
install-run.js
in common/scripts
386 19
CoreUtils.ts
in shared/AppInsightsCore/src/JavaScriptSDK
278 19
SendBuffer.ts
in channels/applicationinsights-channel-js/src
221 18
TsLibShims.ts
in tools/shims/src
199 18
DiagnosticLogger.ts
in shared/AppInsightsCore/src/JavaScriptSDK
176 17
ApplicationInsightsDeprecated.ts
in AISKU/src
192 16
helpers.ts
in extensions/applicationinsights-debugplugin-js/src/components
384 14
helpers.ts
in tools/chrome-debug-extension/src
389 14
EnvelopeCreator.ts
in channels/applicationinsights-channel-js/src
270 13
Files With Long Lines (Top 20)

There are 123 files with lines longer than 120 characters. In total, there are 554 long lines.

File# lines# units# long lines
ajax.ts
in extensions/applicationinsights-dependencies-js/src
825 50 45
ApplicationInsights.ts
in extensions/applicationinsights-analytics-js/src/JavaScriptSDK
622 27 36
Sender.ts
in channels/applicationinsights-channel-js/src
735 25 28
AzureStorageHelper.psm1
in common/publish/AzureStorageHelper
786 - 28
DomContentHandler.ts
in extensions/applicationinsights-clickanalytics-js/src/handlers
242 13 17
ApplicationInsightsDeprecated.ts
in AISKU/src
192 16 15
Es3Tokens.ts
in tools/rollup-es3/src/es3
215 - 12
Initialization.ts
in AISKU/src
339 27 11
EnvelopeCreator.ts
in channels/applicationinsights-channel-js/src
270 13 11
Exception.ts
in shared/AppInsightsCommon/src/Telemetry
443 27 10
ajaxRecord.ts
in extensions/applicationinsights-dependencies-js/src
258 8 9
HelperFuncs.ts
in shared/AppInsightsCore/src/JavaScriptSDK
397 44 9
configurationSelection.tsx
in tools/chrome-debug-extension/src/components
140 6 8
Serializer.ts
in channels/applicationinsights-channel-js/src
145 5 7
helpers.ts
in extensions/applicationinsights-debugplugin-js/src/components
384 14 7
ReactPlugin.ts
in extensions/applicationinsights-react-js/src
104 6 7
DataSanitizer.ts
in shared/AppInsightsCommon/src/Telemetry/Common
180 11 7
Util.ts
in shared/AppInsightsCommon/src
241 8 7
applicationinsights-core-js.ts
in shared/AppInsightsCore/src
59 - 7
helpers.ts
in tools/chrome-debug-extension/src
389 14 7