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

How to interpret RegistryReport #367

Open
almarklein opened this issue Jan 31, 2024 · 0 comments
Open

How to interpret RegistryReport #367

almarklein opened this issue Jan 31, 2024 · 0 comments

Comments

@almarklein
Copy link
Collaborator

The RegistryReport entries have fields:

  • num_allocated
  • num_kept_from_user
  • num_released_from_user
  • num_error
  • element_size

But to me it's unclear how to interpret these num values. My first guess was that num_allocated is the cumulative number of objects that have been allocated in this session, while num_released_from_user is the cumulative number of released objects. So num_kept_from_user should be the difference. However, I do see in some cases that kept + released > allocated.

The docs of gpu-core don't help.

Could someone please explain what the values mean? In wgpu-py we use these in diagnostics to measure the number of live objects, and also have tests for this to detect/prevent memory leaks.

I could submit a PR to improve the wgpu-core docs, once I understand how these work :)

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

No branches or pull requests

1 participant