tensorflow / profiler
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 10% duplication:
    • 15,221 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,574 duplicated lines
  • 131 duplicates
system10% (1,574 lines)
Duplication per Extension
ts9% (882 lines)
scss36% (577 lines)
html5% (103 lines)
py<1% (12 lines)
Duplication per Component (primary)
frontend/app/components13% (1,164 lines)
frontend/app/services15% (296 lines)
plugin/tensorboard_plugin_profile/static54% (40 lines)
frontend15% (27 lines)
plugin/trace_viewer/tf_trace_viewer3% (24 lines)
plugin/tensorboard_plugin_profile2% (12 lines)
frontend/app13% (11 lines)
defs0% (0 lines)
frontend/app/styles0% (0 lines)
frontend/app/common0% (0 lines)
frontend/app/pipes0% (0 lines)
frontend/app/store0% (0 lines)
ROOT0% (0 lines)
plugin/tensorboard_plugin_profile/convert0% (0 lines)
plugin/tensorboard_plugin_profile/protobuf0% (0 lines)
plugin0% (0 lines)
plugin/trace_viewer/webcomponentsjs_polyfill0% (0 lines)
plugin/trace_viewer0% (0 lines)

Duplication Between Components (50+ lines)

G frontend frontend plugin/tensorboard_plugin_profile/static plugin/tensorboard_plugin_profile/static frontend--plugin/tensorboard_plugin_profile/static 55

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 131 duplicates...
Size#FoldersFilesLinesCode
53 x 2 frontend/app/services/data_service
frontend/app/services/data_service
mock_data.ts
mock_data.ts
585:646 (3%)
713:774 (3%)
view
42 x 2 frontend/app/components/...y_viewer/buffer_details
frontend/app/components/op_profile/op_details
buffer_details.scss
op_details.scss
3:53 (82%)
3:53 (41%)
view
31 x 2 frontend/app/components/memory_profile
frontend/app/components/overview
memory_profile_common.scss
overview.scss
21:57 (57%)
7:43 (91%)
view
28 x 2 frontend/app/components/...ce_side_analysis_detail
frontend/app/components/overview/step_time_graph
device_side_analysis_detail.ts
step_time_graph.ts
21:48 (20%)
14:41 (32%)
view
24 x 2 frontend/app/components/..._stats/operations_table
frontend/app/components/..._stats/operations_table
operations_table_data_provider.ts
operations_table_data_provider.ts
160:186 (13%)
231:257 (13%)
view
22 x 2 frontend/app/components/...erator_performance_view
frontend/app/components/overview/top_ops_table
normalized_accelerator_performance_vi...
top_ops_table.scss
3:29 (44%)
3:29 (51%)
view
22 x 2 frontend/app/components/...erator_performance_view
frontend/app/components/overview/top_ops_table
normalized_accelerator_performance_vi...
top_ops_table.scss
37:64 (44%)
29:56 (51%)
view
21 x 2 frontend
plugin/tensorboard_plugin_profile/static
index.html
index.html
10:33 (60%)
18:41 (29%)
view
20 x 2 frontend/app/components/...ommendation_result_view
frontend/app/components/...ew/run_environment_view
recommendation_result_view.scss
run_environment_view.scss
3:27 (41%)
3:27 (57%)
view
20 x 2 frontend/app/components/...wer/program_order_chart
frontend/app/components/...wer/program_order_chart
program_order_chart.ts
program_order_chart.ts
76:95 (11%)
179:198 (11%)
view
18 x 2 frontend/app/components/...iew/performance_summary
frontend/app/components/...ommendation_result_view
performance_summary.scss
recommendation_result_view.scss
8:30 (23%)
9:31 (37%)
view
16 x 2 frontend/app/components/...iew/performance_summary
frontend/app/components/overview/step_time_graph
performance_summary.scss
step_time_graph.scss
3:22 (20%)
3:22 (50%)
view
15 x 2 frontend/app/components/chart
frontend/app/components/chart
chart_options.ts
chart_options.ts
27:41 (28%)
45:59 (28%)
view
15 x 2 frontend/app/components/...iew/performance_summary
frontend/app/components/...ew/run_environment_view
performance_summary.scss
run_environment_view.scss
8:26 (19%)
9:27 (42%)
view
15 x 2 frontend/app/components/...tats/kernel_stats_table
frontend/app/components/...rflow_stats/stats_table
kernel_stats_table.scss
stats_table.scss
3:21 (100%)
3:21 (100%)
view
13 x 2 frontend/app/components/.../memory_breakdown_table
frontend/app/components/...rflow_stats/stats_table
memory_breakdown_table.scss
stats_table.scss
3:19 (86%)
3:19 (86%)
view
13 x 2 frontend/app/components/...tats/kernel_stats_table
frontend/app/components/.../memory_breakdown_table
kernel_stats_table.scss
memory_breakdown_table.scss
3:19 (86%)
3:19 (86%)
view
13 x 2 frontend/app/components/...st_side_analysis_detail
frontend/app/components/overview/top_ops_table
host_side_analysis_detail.scss
top_ops_table.scss
12:27 (41%)
14:29 (30%)
view
13 x 2 frontend/app/components/...st_side_analysis_detail
frontend/app/components/...erator_performance_view
host_side_analysis_detail.scss
normalized_accelerator_performance_vi...
12:27 (41%)
14:29 (26%)
view
12 x 2 frontend/app/components/...ew/run_environment_view
frontend/app/components/overview/step_time_graph
run_environment_view.scss
step_time_graph.scss
27:41 (34%)
27:41 (37%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
11 x 2 frontend/app/components/overview/top_ops_table
frontend/app/components/chart/table
top_ops_table.ts
table.ts
124:135 
58:70 
view