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

Arena bytes alloced #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rfmineguy
Copy link

What? Added arena_bytes() function that counts up how many bytes are allocated in the arena
Why? I wanted to be able to easily see how much memory was allocated over the course of using the arena.
How? Traverse through the regions and tally up all of their counts
Testing I totaled up the allocations and made sure the displayed byte count was accurate.

Thank you for making such useful and simple libraries for us all to use!

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

Successfully merging this pull request may close these issues.

1 participant