Skip to content

#825: Add GC Log Analyzer commandlet#2196

Open
Caylipp wants to merge 9 commits into
devonfw:mainfrom
Caylipp:feature/825-gc-log-analyzer-commandlet
Open

#825: Add GC Log Analyzer commandlet#2196
Caylipp wants to merge 9 commits into
devonfw:mainfrom
Caylipp:feature/825-gc-log-analyzer-commandlet

Conversation

@Caylipp

@Caylipp Caylipp commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #825

Implemented changes:

  • Add GcLogAnalyzer as a local tool commandlet.
  • Install and launch GC Log Analyzer via java -jar.
  • Run the graphical application in background mode.
  • Add Java 11 or newer as an automatic tool dependency.
  • Support the difference between the IDEasy version 24.10.0.0 and the artifact version 24.10.0.

Testing instructions

Please add conscise, understandable instructions on how a reviewer can test/verify the functionality of your contribution here:

  1. Run the focused commandlet test:
    mvn -pl cli -Dtest=GcLogAnalyzerTest test

  2. Run the complete project test suite:
    mvn clean test


Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal
  • You have formulated clear instructions on how to test your contribution under "Testing instructions"

Checklist for tool commandlets

Have you added a new «tool» as commandlet? There are the following additional checks:

  • The tool can be installed automatically (during setup via settings) or via the commandlet call
  • The tool is isolated in its IDEasy project, see Sandbox Principle
  • The new tool is added to the table of tools in LICENSE.asciidoc
  • The new commandlet is a command-wrapper for «tool»
  • Proper help texts for all supported languages are added here
  • The new commandlet installs potential dependencies automatically
  • The variables «TOOL»_VERSION and «TOOL»_EDITION are honored by your commandlet
  • The new commandlet is tested on all platforms it is available for or tested on all platforms that are in scope of the linked issue

Caylipp added 3 commits July 21, 2026 15:54
- resolve merge conflicts in CHANGELOG.adoc
- add Gcloganalyzer commandlet .java
- add test and fixture files
@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Jul 21, 2026
@Caylipp Caylipp self-assigned this Jul 21, 2026
@Caylipp Caylipp moved this from 🆕 New to Team Review in IDEasy board Jul 21, 2026
@Caylipp Caylipp added enhancement New feature or request gcviewer GUI to visualize logs of Java Garbage Collector commandlet ide sub-command labels Jul 21, 2026
@laert-ll laert-ll self-assigned this Jul 22, 2026
@coveralls

coveralls commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 29906275223

Coverage increased (+0.07%) to 72.564%

Details

  • Coverage increased (+0.07%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 8 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

8 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/tools/ide/commandlet/CommandletManagerImpl.java 7 91.9%
com/devonfw/tools/ide/version/VersionSegment.java 1 90.55%

Coverage Stats

Coverage Status
Relevant Lines: 16973
Covered Lines: 12842
Line Coverage: 75.66%
Relevant Branches: 7586
Covered Branches: 4979
Branch Coverage: 65.63%
Branches in Coverage %: Yes
Coverage Strength: 3.2 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commandlet ide sub-command enhancement New feature or request gcviewer GUI to visualize logs of Java Garbage Collector

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

Consider adding GC Log Analyzer

3 participants