Skip to content

feat: GC pause phase breakdown from debug logs (#115)#119

Merged
rlaope merged 1 commit intomasterfrom
feat/gc-phase-breakdown
Apr 12, 2026
Merged

feat: GC pause phase breakdown from debug logs (#115)#119
rlaope merged 1 commit intomasterfrom
feat/gc-phase-breakdown

Conversation

@rlaope
Copy link
Copy Markdown
Owner

@rlaope rlaope commented Apr 12, 2026

Summary

  • Add phase-level timing extraction from JDK 17+ unified debug GC logs (-Xlog:gc*=debug)
  • Parse [gc,phases] entries to show per-phase avg/max duration and percentage of total pause
  • argus gclog <file> --phases renders bar-chart phase breakdown

Changes

  • GcPhaseEvent β€” data class for phase timing per GC cycle
  • GcPhaseAnalyzer β€” aggregates phases across GCs into per-phase stats
  • GcLogParser.parseWithPhases() β€” extracts both events and phases in single pass
  • GcLogCommand --phases β€” renders bar-chart section

Test plan

  • GcPhaseAnalyzerTest β€” 5 tests (parsing, aggregation, percentages, edge cases)
  • ./gradlew :argus-cli:test passes
  • Manual test with real G1 debug GC log

Closes #115

Add phase-level timing extraction from JDK 17+ unified debug
GC logs (-Xlog:gc*=debug). Parses [gc,phases] entries to show
per-phase avg/max duration and percentage of total pause.

- GcPhaseEvent: data class for phase timing per GC cycle
- GcPhaseAnalyzer: aggregates phases across GCs into stats
- GcLogParser.parseWithPhases(): extracts both events and phases
- GcLogCommand --phases: renders bar-chart phase breakdown

Signed-off-by: rlaope <piyrw9754@gmail.com>
@rlaope rlaope merged commit 76abcfe into master Apr 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: GC pause phase breakdown & collector-specific metrics

1 participant