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 smart pointer tracker #11

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add smart pointer tracker #11

wants to merge 5 commits into from

Conversation

dfaust
Copy link

@dfaust dfaust commented Jul 24, 2023

This PR adds a tracker parameter to the get_size and get_heap_size methods.
It allows tracking the address of already counted smart pointers and thereby eliminates the need to manage that yourself.
This is the same feature that already exists in https://github.com/wasmerio/loupe.

I also implemented GetSize for some serde_json and indexmap and some more std types.

I understand that these are somewhat opinionated changes, that's why I haven't updated the docs, yet.
Please let me know if you want to merge it, then I can update the docs as well.

nicmue added a commit to everestsystems/get-size that referenced this pull request Oct 26, 2023
Adds the enhancements proposed by:
- DKerp/get-size#11
- DKerp/get-size#13

Also adds support for `uuid`, `dashmap` and `serde_json`.
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