apache / harmony-drlvm
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
j
txt
properties
s
inl
cfg
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.

main287180 LOC (80%) 1,204 files
test65504 LOC (18%) 783 files
generated1680 LOC (<1%) 6 files
build and deployment499 LOC (<1%) 3 files
other1136 LOC (<1%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
inl
s
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1204 files match defined criteria (287,180 LOC, 100.0% vs. main code):
    • 515 *.cpp files (199,429 LOC)
    • 495 *.h files (59,127 LOC)
    • 88 *.java files (12,544 LOC)
    • 60 *.c files (6,282 LOC)
    • 3 *.html files (2,207 LOC)
    • 3 *.htm files (2,102 LOC)
    • 19 *.xml files (1,604 LOC)
    • 12 *.asm files (1,353 LOC)
    • 1 *.g files (1,093 LOC)
    • 2 *.inl files (748 LOC)
    • 4 *.s files (281 LOC)
    • 1 *.css files (246 LOC)
    • 1 *.cfg files (164 LOC)
  • " *.cpp" is biggest, containing 69.44% of LOC.
  • " *.cfg" is smallest, containing 0.06% of LOC.


*.cpp199429 LOC (69%) 515 files
*.h59127 LOC (20%) 495 files
*.java12544 LOC (4%) 88 files
*.c6282 LOC (2%) 60 files
*.html2207 LOC (<1%) 3 files
*.htm2102 LOC (<1%) 3 files
*.xml1604 LOC (<1%) 19 files
*.asm1353 LOC (<1%) 12 files
*.g1093 LOC (<1%) 1 file
*.inl748 LOC (<1%) 2 files
*.s281 LOC (<1%) 4 files
*.css246 LOC (<1%) 1 file
*.cfg164 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
j
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 783 files match defined criteria (65,504 LOC, 22.8% vs. main code):
    • 494 *.java files (36,868 LOC)
    • 82 *.cpp files (15,621 LOC)
    • 48 *.j files (4,467 LOC)
    • 37 *.c files (3,970 LOC)
    • 102 *.xml files (2,204 LOC)
    • 14 *.h files (2,060 LOC)
    • 6 *.sh files (314 LOC)
  • " *.java" is biggest, containing 56.28% of LOC.
  • " *.sh" is smallest, containing 0.48% of LOC.


*.java36868 LOC (56%) 494 files
*.cpp15621 LOC (23%) 82 files
*.j4467 LOC (6%) 48 files
*.c3970 LOC (6%) 37 files
*.xml2204 LOC (3%) 102 files
*.h2060 LOC (3%) 14 files
*.sh314 LOC (<1%) 6 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/src/gen/.*".
  • 6 files match defined criteria (1,680 LOC, 0.6% vs. main code):
    • 4 *.cpp files (1,441 LOC)
    • 2 *.h files (239 LOC)
  • " *.cpp" is biggest, containing 85.77% of LOC.
  • " *.h" is smallest, containing 14.23% of LOC.


*.cpp1441 LOC (85%) 4 files
*.h239 LOC (14%) 2 files
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 ".*/build[.]xml".
    • files with paths like ".*[.]sh".
  • 3 files match defined criteria (499 LOC, 0.2% vs. main code):
    • 2 *.xml files (440 LOC)
    • 1 *.sh files (59 LOC)
  • " *.xml" is biggest, containing 88.18% of LOC.
  • " *.sh" is smallest, containing 11.82% of LOC.


*.xml440 LOC (88%) 2 files
*.sh59 LOC (11%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
  • 21 files match defined criteria (1,136 LOC, 0.4% vs. main code):
    • 5 *.properties files (744 LOC)
    • 16 *.txt files (392 LOC)
  • " *.properties" is biggest, containing 65.49% of LOC.
  • " *.txt" is smallest, containing 34.51% of LOC.


*.properties744 LOC (65%) 5 files
*.txt392 LOC (34%) 16 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 10:43