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

Add feature to query number of allocations #154

Open
Robbepop opened this issue Jul 14, 2020 · 0 comments
Open

Add feature to query number of allocations #154

Robbepop opened this issue Jul 14, 2020 · 0 comments

Comments

@Robbepop
Copy link

Robbepop commented Jul 14, 2020

This is concerning the jemalloc-ctl crate:

It is often important to distinguish between the number of allocations and not only the number of allocated bytes.
For example it could make a big difference if an application allocated the same amount of bytes in one big chunk or in many tiny pieces.

It would be very nice if we could query the number of allocations done by the underlying application if that's possible to add. In the same vein it might also be interesting to add a way to query the number of memory frees.

I am not sure at this point but it might be that the required API is missing from jemalloc:
jemalloc/jemalloc#1878

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