Skip to content

Propose a better Garbage Collect button and info - #1255

Merged
AlexisDrogoul merged 4 commits into
mainfrom
Better_Garbage_Collect
Oct 9, 2026
Merged

AlexisDrogoul merged 4 commits into
mainfrom
Better_Garbage_Collect

Conversation

@AlexisDrogoul

Copy link
Copy Markdown
Member

Should fix #1254 when merged.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The collection status mislabels used memory as freed memory, and the new documentation claims unimplemented coloring.

2 open findings
What changed in this PR

Improves the heap control’s clarity and visibility.

Changes:

  • Adds live memory usage and clearer tooltip text.
  • Refreshes heap information every two seconds.
  • Adds text to toolbar actions.
File Description
HeapControl.java Enhances heap controls and memory feedback.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread gama.ui.shared/src/gama/ui/shared/access/HeapControl.java Outdated
Comment thread gama.ui.shared/src/gama/ui/shared/access/HeapControl.java Outdated
AlexisDrogoul and others added 3 commits October 9, 2026 16:54
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Clarified the comment to specify that the label shows used heap as a percentage of maximum heap.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@AlexisDrogoul
AlexisDrogoul merged commit c2e8312 into main Oct 9, 2026
7 of 9 checks passed
@AlexisDrogoul
AlexisDrogoul deleted the Better_Garbage_Collect branch October 9, 2026 10:43
@github-project-automation github-project-automation Bot moved this from Todo to Done in GAMA current Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

The Trash icon to call the Garbage collector is confusing for users

2 participants