Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPython runtime gc metrics #1930

Open
xrmx opened this issue Feb 24, 2025 · 0 comments · May be fixed by #1931
Open

CPython runtime gc metrics #1930

xrmx opened this issue Feb 24, 2025 · 0 comments · May be fixed by #1931
Labels
enhancement New feature or request experts needed This issue or pull request is outside an area where general approvers feel they can approve triage:needs-triage

Comments

@xrmx
Copy link
Contributor

xrmx commented Feb 24, 2025

Propose new conventions

I would like to add 3 new CPython metrics regarding its garbage collector:

  • cpython.gc.collections
  • metric.cpython.gc.collected
  • metric.cpython.gc.uncollectable

And then a an attribute cpython.gc.generation to track for what gc generation (gen0, gen1, gen2) this metrics are.

Data will come from the gc.get_stats API: https://docs.python.org/3/library/gc.html#gc.get_stats

@xrmx xrmx added enhancement New feature or request experts needed This issue or pull request is outside an area where general approvers feel they can approve labels Feb 24, 2025
@xrmx xrmx changed the title CPython gc runtime metrics CPython runtime gc metrics Feb 24, 2025
@xrmx xrmx linked a pull request Feb 24, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request experts needed This issue or pull request is outside an area where general approvers feel they can approve triage:needs-triage
Projects
Status: Need triage
Development

Successfully merging a pull request may close this issue.

1 participant