GoogleCloudPlatform / PerfKitBenchmarker
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
txt
patch
tcl
cfg
lua
jinja2
diff
gitattributes
in
ini
properties
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.

main119020 LOC (62%) 788 files
test46608 LOC (24%) 296 files
generated0 LOC (0%) 0 files
build and deployment647 LOC (<1%) 23 files
other23487 LOC (12%) 248 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
cfg
tcl
jinja2
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 788 files match defined criteria (119,020 LOC, 100.0% vs. main code):
    • 717 *.py files (113,721 LOC)
    • 5 *.lua files (1,674 LOC)
    • 22 *.yaml files (1,063 LOC)
    • 7 *.cfg files (975 LOC)
    • 17 *.ps1 files (572 LOC)
    • 12 *.tcl files (545 LOC)
    • 1 *.xml files (247 LOC)
    • 3 *.jinja2 files (152 LOC)
    • 2 *.sql files (47 LOC)
    • 1 *.inc files (18 LOC)
    • 1 *.in files (6 LOC)
  • " *.py" is biggest, containing 95.55% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py113721 LOC (95%) 717 files
*.lua1674 LOC (1%) 5 files
*.yaml1063 LOC (<1%) 22 files
*.cfg975 LOC (<1%) 7 files
*.ps1572 LOC (<1%) 17 files
*.tcl545 LOC (<1%) 12 files
*.xml247 LOC (<1%) 1 file
*.jinja2152 LOC (<1%) 3 files
*.sql47 LOC (<1%) 2 files
*.inc18 LOC (<1%) 1 file
*.in6 LOC (<1%) 1 file
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 ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/test_.*".
  • 296 files match defined criteria (46,608 LOC, 39.2% vs. main code):
    • 287 *.py files (45,095 LOC)
    • 1 *.yaml files (1,000 LOC)
    • 6 *.xml files (427 LOC)
    • 2 *.sh files (86 LOC)
  • " *.py" is biggest, containing 96.75% of LOC.
  • " *.sh" is smallest, containing 0.18% of LOC.


*.py45095 LOC (96%) 287 files
*.yaml1000 LOC (2%) 1 file
*.xml427 LOC (<1%) 6 files
*.sh86 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 23 files match defined criteria (647 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh647 LOC (100%) 23 files
Other Code
txt
patch
diff
properties
ini
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 ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]ini".
  • 248 files match defined criteria (23,487 LOC, 19.7% vs. main code):
    • 132 *.txt files (9,880 LOC)
    • 20 *.md files (6,366 LOC)
    • 74 *.json files (5,059 LOC)
    • 13 *.patch files (1,720 LOC)
    • 2 *.diff files (282 LOC)
    • 3 *.sh files (54 LOC)
    • 2 *.py files (49 LOC)
    • 1 *.properties files (39 LOC)
    • 1 *.ini files (38 LOC)
  • " *.txt" is biggest, containing 42.07% of LOC.
  • " *.ini" is smallest, containing 0.16% of LOC.


*.txt9880 LOC (42%) 132 files
*.md6366 LOC (27%) 20 files
*.json5059 LOC (21%) 74 files
*.patch1720 LOC (7%) 13 files
*.diff282 LOC (1%) 2 files
*.sh54 LOC (<1%) 3 files
*.py49 LOC (<1%) 2 files
*.properties39 LOC (<1%) 1 file
*.ini38 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 14:20