apache / tvm-vta
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
v
tcl
txt
properties
cl
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main14681 LOC (76%) 113 files
test3363 LOC (17%) 30 files
generated0 LOC (0%) 0 files
build and deployment4 LOC (<1%) 1 file
other1063 LOC (5%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tcl
v
cl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 113 files match defined criteria (14,681 LOC, 100.0% vs. main code):
    • 47 *.scala files (7,005 LOC)
    • 17 *.cc files (2,941 LOC)
    • 6 *.tcl files (1,614 LOC)
    • 14 *.h files (1,087 LOC)
    • 10 *.v files (818 LOC)
    • 11 *.py files (709 LOC)
    • 1 *.cl files (278 LOC)
    • 1 *.xml files (133 LOC)
    • 6 *.sbt files (96 LOC)
  • " *.scala" is biggest, containing 47.71% of LOC.
  • " *.sbt" is smallest, containing 0.65% of LOC.


*.scala7005 LOC (47%) 47 files
*.cc2941 LOC (20%) 17 files
*.tcl1614 LOC (10%) 6 files
*.h1087 LOC (7%) 14 files
*.v818 LOC (5%) 10 files
*.py709 LOC (4%) 11 files
*.cl278 LOC (1%) 1 file
*.xml133 LOC (<1%) 1 file
*.sbt96 LOC (<1%) 6 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 30 files match defined criteria (3,363 LOC, 22.9% vs. main code):
    • 14 *.scala files (1,711 LOC)
    • 3 *.cc files (1,272 LOC)
    • 9 *.sh files (155 LOC)
    • 3 *.py files (153 LOC)
    • 1 *.h files (72 LOC)
  • " *.scala" is biggest, containing 50.88% of LOC.
  • " *.h" is smallest, containing 2.14% of LOC.


*.scala1711 LOC (50%) 14 files
*.cc1272 LOC (37%) 3 files
*.sh155 LOC (4%) 9 files
*.py153 LOC (4%) 3 files
*.h72 LOC (2%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 1 file matches defined criteria (4 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh4 LOC (100%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]txt".
  • 25 files match defined criteria (1,063 LOC, 7.2% vs. main code):
    • 10 *.json files (480 LOC)
    • 9 *.md files (316 LOC)
    • 1 *.rst files (126 LOC)
    • 2 *.txt files (84 LOC)
    • 3 *.properties files (57 LOC)
  • " *.json" is biggest, containing 45.16% of LOC.
  • " *.properties" is smallest, containing 5.36% of LOC.


*.json480 LOC (45%) 10 files
*.md316 LOC (29%) 9 files
*.rst126 LOC (11%) 1 file
*.txt84 LOC (7%) 2 files
*.properties57 LOC (5%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 01:38