tensorflow / profiler
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 310 files with 17,899 lines of code.
    • 1 very long files (1,872 lines of code)
    • 1 long files (731 lines of code)
    • 12 medium size files (3,650 lines of codeclsfd_ftr_w_mp_ins)
    • 29 small files (3,853 lines of code)
    • 267 very small files (7,793 lines of code)
10% | 4% | 20% | 21% | 43%
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
ts16% | 0% | 25% | 19% | 38%
html0% | 29% | 0% | 13% | 56%
py0% | 0% | 46% | 27% | 25%
proto0% | 0% | 0% | 72% | 27%
scss0% | 0% | 0% | 21% | 78%
bzl0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
frontend/app/services85% | 0% | 0% | 5% | 9%
plugin/trace_viewer/tf_trace_viewer0% | 93% | 0% | 0% | 6%
frontend/app/components0% | 0% | 21% | 24% | 53%
frontend/app/common0% | 0% | 62% | 0% | 37%
plugin/tensorboard_plugin_profile0% | 0% | 88% | 0% | 11%
plugin/tensorboard_plugin_profile/convert0% | 0% | 26% | 47% | 25%
plugin/tensorboard_plugin_profile/protobuf0% | 0% | 0% | 72% | 27%
frontend0% | 0% | 0% | 70% | 29%
frontend/app/store0% | 0% | 0% | 21% | 78%
frontend/app0% | 0% | 0% | 0% | 100%
frontend/app/styles0% | 0% | 0% | 0% | 100%
plugin/tensorboard_plugin_profile/static0% | 0% | 0% | 0% | 100%
defs0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
plugin0% | 0% | 0% | 0% | 100%
plugin/trace_viewer0% | 0% | 0% | 0% | 100%
frontend/app/pipes0% | 0% | 0% | 0% | 100%
plugin/trace_viewer/webcomponentsjs_polyfill0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
mock_data.ts
in frontend/app/services/data_service
1872 -
tf-trace-viewer.html
in plugin/trace_viewer/tf_trace_viewer
731 -
profile_plugin.py
in plugin/tensorboard_plugin_profile
470 28
memory_usage.ts
in frontend/app/components/memory_viewer/memory_usage
452 12
topology_graph.ts
in frontend/app/components/pod_viewer/topology_graph
447 19
data_table.ts
in frontend/app/common/interfaces
339 -
stats_table_data_provider.ts
in frontend/app/components/tensorflow_stats/stats_table
279 9
table_utils.ts
in frontend/app/components/chart
279 7
utils.ts
in frontend/app/common/utils
260 22
kernel_stats_table.ts
in frontend/app/components/kernel_stats/kernel_stats_table
253 6
performance_summary.ts
in frontend/app/components/overview/performance_summary
234 4
input_pipeline_proto_to_gviz.py
in plugin/tensorboard_plugin_profile/convert
225 8
operations_table_data_provider.ts
in frontend/app/components/tensorflow_stats/operations_table
208 3
pod_viewer_common.ts
in frontend/app/components/pod_viewer
204 11
memory_timeline_graph.ts
in frontend/app/components/memory_profile/memory_timeline_graph
199 8
program_order_chart.ts
in frontend/app/components/memory_viewer/program_order_chart
196 6
proto
overview_page.proto
in plugin/tensorboard_plugin_profile/protobuf
191 -
proto
input_pipeline.proto
in plugin/tensorboard_plugin_profile/protobuf
172 -
tensorflow_stats.ts
in frontend/app/components/tensorflow_stats
164 2
overview_page_proto_to_gviz.py
in plugin/tensorboard_plugin_profile/convert
163 8
device_side_analysis_detail.ts
in frontend/app/components/input_pipeline/device_side_analysis_detail
146 2
memory_viewer_main.ts
in frontend/app/components/memory_viewer/memory_viewer_main
146 8
chart.ts
in frontend/app/components/chart
136 6
tf_data_stats_proto_to_gviz.py
in plugin/tensorboard_plugin_profile/convert
136 10
kernel_stats_chart.ts
in frontend/app/components/kernel_stats/kernel_stats_chart
133 5
styles.scss
in frontend
131 -
memory_breakdown_table.ts
in frontend/app/components/memory_profile/memory_breakdown_table
130 4
recommendation_result_view.ts
in frontend/app/components/overview/recommendation_result_view
125 4
sidenav.ts
in frontend/app/components/sidenav
125 5
op_details.ts
in frontend/app/components/op_profile/op_details
122 2
capture_profile_dialog.ng.html
in frontend/app/components/capture_profile/capture_profile_dialog
119 -
pod_viewer_details.ts
in frontend/app/components/pod_viewer/pod_viewer_details
119 6
tf_data_bottleneck_analysis.ts
in frontend/app/components/tf_data_bottleneck_analysis
117 4
data_dispatcher_base.ts
in frontend/app/services/data_dispatcher
114 4
tensorflow_stats.ng.html
in frontend/app/components/tensorflow_stats
113 -
top_ops_table.ts
in frontend/app/components/overview/top_ops_table
113 4
proto
tf_data_stats.proto
in plugin/tensorboard_plugin_profile/protobuf
113 -
reducers.ts
in frontend/app/store
109 1
topology_graph.scss
in frontend/app/components/pod_viewer/topology_graph
108 -
default_data_provider.ts
in frontend/app/components/chart
107 9
raw_to_tool_data.py
in plugin/tensorboard_plugin_profile/convert
103 4
topology_graph.ng.html
in frontend/app/components/pod_viewer/topology_graph
102 -
op_details.scss
in frontend/app/components/op_profile/op_details
101 -
op_table_entry.ts
in frontend/app/components/op_profile/op_table_entry
100 5
data_service.ts
in frontend/app/services/data_service
100 3
step_time_graph.ts
in frontend/app/components/overview/step_time_graph
95 3
max_heap_chart.ts
in frontend/app/components/memory_viewer/max_heap_chart
94 5
common.scss
in frontend/app/styles
87 -
op_details.ng.html
in frontend/app/components/op_profile/op_details
84 -
performance_summary.ng.html
in frontend/app/components/overview/performance_summary
84 -
Files With Most Units (Top 20)
File# lines# units
profile_plugin.py
in plugin/tensorboard_plugin_profile
470 28
utils.ts
in frontend/app/common/utils
260 22
topology_graph.ts
in frontend/app/components/pod_viewer/topology_graph
447 19
memory_usage.ts
in frontend/app/components/memory_viewer/memory_usage
452 12
pod_viewer_common.ts
in frontend/app/components/pod_viewer
204 11
tf_data_stats_proto_to_gviz.py
in plugin/tensorboard_plugin_profile/convert
136 10
stats_table_data_provider.ts
in frontend/app/components/tensorflow_stats/stats_table
279 9
default_data_provider.ts
in frontend/app/components/chart
107 9
memory_timeline_graph.ts
in frontend/app/components/memory_profile/memory_timeline_graph
199 8
memory_viewer_main.ts
in frontend/app/components/memory_viewer/memory_viewer_main
146 8
data_request_queue.ts
in frontend/app/services/data_dispatcher
66 8
input_pipeline_proto_to_gviz.py
in plugin/tensorboard_plugin_profile/convert
225 8
overview_page_proto_to_gviz.py
in plugin/tensorboard_plugin_profile/convert
163 8
range_slider.ts
in frontend/app/components/range_slider
66 7
table_utils.ts
in frontend/app/components/chart
279 7
testing.ts
in frontend/app/common/constants
84 7
pod_viewer_details.ts
in frontend/app/components/pod_viewer/pod_viewer_details
119 6
program_order_chart.ts
in frontend/app/components/memory_viewer/program_order_chart
196 6
kernel_stats_table.ts
in frontend/app/components/kernel_stats/kernel_stats_table
253 6
chart.ts
in frontend/app/components/chart
136 6
Files With Long Lines (Top 20)

There are 32 files with lines longer than 120 characters. In total, there are 67 long lines.

File# lines# units# long lines
mock_data.ts
in frontend/app/services/data_service
1872 - 19
overview_module.ts
in frontend/app/components/overview
26 - 4
memory_profile_module.ts
in frontend/app/components/memory_profile
26 - 3
tensorflow_stats_module.ts
in frontend/app/components/tensorflow_stats
32 - 3
input_pipeline_module.ts
in frontend/app/components/input_pipeline
20 - 3
performance_summary.ts
in frontend/app/components/overview/performance_summary
234 4 3
sidenav.ng.html
in frontend/app/components/sidenav
49 - 3
main_page_module.ts
in frontend/app/components/main_page
76 - 3
sidenav_module.ts
in frontend/app/components/sidenav
26 - 2
chart.ts
in frontend/app/components/chart
136 6 2
memory_timeline_graph.ts
in frontend/app/components/memory_profile/memory_timeline_graph
199 8 1
tensorflow_stats.ts
in frontend/app/components/tensorflow_stats
164 2 1
input_pipeline_common.ts
in frontend/app/components/input_pipeline
83 2 1
host_side_analysis_detail.ts
in frontend/app/components/input_pipeline/host_side_analysis_detail
80 3 1
pod_viewer_common.ts
in frontend/app/components/pod_viewer
204 11 1
topology_graph.ts
in frontend/app/components/pod_viewer/topology_graph
447 19 1
memory_viewer_module.ts
in frontend/app/components/memory_viewer
12 - 1
max_heap_chart.ts
in frontend/app/components/memory_viewer/max_heap_chart
94 5 1
memory_viewer_main_module.ts
in frontend/app/components/memory_viewer/memory_viewer_main
26 - 1
empty_page.ng.html
in frontend/app/components/empty_page
46 - 1