Skip to content

#253 Add gc pause time to ai prompt#254

Open
kkazmierczyk wants to merge 3 commits intomainfrom
issue-253-add-gc-pause-time-to-ai-prompt
Open

#253 Add gc pause time to ai prompt#254
kkazmierczyk wants to merge 3 commits intomainfrom
issue-253-add-gc-pause-time-to-ai-prompt

Conversation

@kkazmierczyk
Copy link
Copy Markdown
Collaborator

Fixes #253

Summary

  • add GC pause time data to the AI performance recommendations prompt
  • include detailed per-collection pause entries for smaller GC datasets
  • include summarized pause statistics for larger GC datasets
  • add reference guidance that typical GC pause targets are in the 500-2000 ms range

Details

  • PerformanceRecommendationsPrompter now computes GC pause context and injects it into the prompt
  • for fewer than 100 GC collections, the prompt receives timestamped pause durations
  • for 100 or more GC collections, the prompt receives summary metrics including total count, average, min, max, and counts over 1000 ms and 2000 ms
  • the prompt template was updated to include a dedicated GC Pause Times section
  • a new constant is used to control the threshold between detailed and summarized output

Comment on lines +240 to +241


Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 2 new lines

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GC pause time to performance recommendation prompt

1 participant