pytorch / kineto
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 162 files with 17,642 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,062 lines of code)
    • 25 medium size files (8,289 lines of codeclsfd_ftr_w_mp_ins)
    • 20 small files (2,754 lines of code)
    • 114 very small files (4,537 lines of code)
0% | 11% | 46% | 15% | 25%
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
cpp0% | 18% | 55% | 12% | 12%
yaml0% | 96% | 0% | 0% | 3%
py0% | 0% | 59% | 23% | 16%
tsx0% | 0% | 57% | 11% | 30%
h0% | 0% | 24% | 22% | 53%
ts0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
tpp0% | 0% | 0% | 0% | 100%
bzl0% | 0% | 0% | 0% | 100%
cu0% | 0% | 0% | 0% | 100%
cuh0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
libkineto/src0% | 13% | 47% | 15% | 23%
tb_plugin/fe/src0% | 21% | 40% | 8% | 29%
tb_plugin/torch_tb_profiler/profiler0% | 0% | 54% | 35% | 10%
tb_plugin/torch_tb_profiler0% | 0% | 90% | 0% | 9%
tb_plugin/torch_tb_profiler/io0% | 0% | 51% | 16% | 31%
libkineto/include0% | 0% | 0% | 23% | 76%
tb_plugin/torch_tb_profiler/static0% | 0% | 0% | 0% | 100%
tb_plugin0% | 0% | 0% | 0% | 100%
libkineto/sample_programs0% | 0% | 0% | 0% | 100%
libkineto0% | 0% | 0% | 0% | 100%
tb_plugin/packaging/torch_tb_profiler0% | 0% | 0% | 0% | 100%
tb_plugin/fe/scripts0% | 0% | 0% | 0% | 100%
tb_plugin/fe0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
openapi.yaml
in tb_plugin/fe/src/api
961 -
CuptiActivityProfiler.cpp
in libkineto/src
600 22
EventProfiler.cpp
in libkineto/src
501 31
RoctracerActivityApi.cpp
in libkineto/src
476 15
cupti_strings.cpp
in libkineto/src
472 -
run_generator.py
in tb_plugin/torch_tb_profiler/profiler
469 18
output_json.cpp
in libkineto/src
433 2
MemoryView.tsx
in tb_plugin/fe/src/components
424 3
file.py
in tb_plugin/torch_tb_profiler/io
418 50
run.py
in tb_plugin/torch_tb_profiler
417 17
event_parser.py
in tb_plugin/torch_tb_profiler/profiler
389 21
plugin.py
in tb_plugin/torch_tb_profiler
379 39
CuptiNvPerfMetric.cpp
in libkineto/src
364 8
app.tsx
in tb_plugin/fe/src
352 2
EventProfilerController.cpp
in libkineto/src
349 15
Config.cpp
in libkineto/src
329 17
CuptiRangeProfilerApi.cpp
in libkineto/src
303 19
Operator.tsx
in tb_plugin/fe/src/components
290 -
data.py
in tb_plugin/torch_tb_profiler/profiler
290 11
DistributedView.tsx
in tb_plugin/fe/src/components
280 -
CuptiActivityApi.cpp
in libkineto/src
272 15
Kernel.tsx
in tb_plugin/fe/src/components
258 -
ConfigLoader.cpp
in libkineto/src
256 15
EventProfiler.h
in libkineto/src
233 20
Config.h
in libkineto/src
221 32
CuptiActivityProfiler.h
in libkineto/src
207 14
memory_parser.py
in tb_plugin/torch_tb_profiler/profiler
205 12
Overview.tsx
in tb_plugin/fe/src/components
203 -
node.py
in tb_plugin/torch_tb_profiler/profiler
184 20
CuptiCallbackApi.cpp
in libkineto/src
176 6
ThreadUtil.cpp
in libkineto/src
176 7
range_utils.py
in tb_plugin/torch_tb_profiler/profiler
162 8
Logger.h
in libkineto/src
157 10
gpu_metrics_parser.py
in tb_plugin/torch_tb_profiler/profiler
152 6
AbstractConfig.cpp
in libkineto/src
149 15
ActivityProfilerController.cpp
in libkineto/src
142 10
RoctracerActivityApi.h
in libkineto/src
137 2
azureblob.py
in tb_plugin/torch_tb_profiler/io
137 14
common.tsx
in tb_plugin/fe/src/components/tables
133 1
loader.py
in tb_plugin/torch_tb_profiler/profiler
130 5
module_parser.py
in tb_plugin/torch_tb_profiler/profiler
127 11
trace.py
in tb_plugin/torch_tb_profiler/profiler
124 12
GpuInfoTable.tsx
in tb_plugin/fe/src/components
119 2
LineChart.tsx
in tb_plugin/fe/src/components/charts
115 1
SampleListener.h
in libkineto/src
114 11
ConfigLoader.h
in libkineto/src
112 7
CudaDeviceProperties.cpp
in libkineto/src
107 5
libkineto.h
in libkineto/include
101 8
output_membuf.h
in libkineto/src
97 12
init.cpp
in libkineto/src
96 5
Files With Most Units (Top 20)
File# lines# units
file.py
in tb_plugin/torch_tb_profiler/io
418 50
plugin.py
in tb_plugin/torch_tb_profiler
379 39
Config.h
in libkineto/src
221 32
EventProfiler.cpp
in libkineto/src
501 31
base.py
in tb_plugin/torch_tb_profiler/io
76 24
CuptiActivityProfiler.cpp
in libkineto/src
600 22
event_parser.py
in tb_plugin/torch_tb_profiler/profiler
389 21
EventProfiler.h
in libkineto/src
233 20
node.py
in tb_plugin/torch_tb_profiler/profiler
184 20
CuptiRangeProfilerApi.cpp
in libkineto/src
303 19
run_generator.py
in tb_plugin/torch_tb_profiler/profiler
469 18
Config.cpp
in libkineto/src
329 17
run.py
in tb_plugin/torch_tb_profiler
417 17
CuptiActivity.h
in libkineto/src
63 16
GenericTraceActivity.h
in libkineto/include
88 15
ActivityProfilerInterface.h
in libkineto/include
40 15
CuptiActivityApi.cpp
in libkineto/src
272 15
EventProfilerController.cpp
in libkineto/src
349 15
AbstractConfig.cpp
in libkineto/src
149 15
ConfigLoader.cpp
in libkineto/src
256 15
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 53 long lines.

File# lines# units# long lines
data.py
in tb_plugin/torch_tb_profiler/profiler
290 11 11
run_generator.py
in tb_plugin/torch_tb_profiler/profiler
469 18 10
event_parser.py
in tb_plugin/torch_tb_profiler/profiler
389 21 6
overall_parser.py
in tb_plugin/torch_tb_profiler/profiler
77 8 6
plugin.py
in tb_plugin/torch_tb_profiler
379 39 3
memory_parser.py
in tb_plugin/torch_tb_profiler/profiler
205 12 3
ThreadUtil.cpp
in libkineto/src
176 7 2
CuptiActivityProfiler.cpp
in libkineto/src
600 22 2
run.py
in tb_plugin/torch_tb_profiler
417 17 2
file.py
in tb_plugin/torch_tb_profiler/io
418 50 2
loader.py
in tb_plugin/torch_tb_profiler/profiler
130 5 2
node.py
in tb_plugin/torch_tb_profiler/profiler
184 20 2
communication.py
in tb_plugin/torch_tb_profiler/profiler
63 2 1
gpu_metrics_parser.py
in tb_plugin/torch_tb_profiler/profiler
152 6 1