Skip to content

Expose a method to return the memory usage of all dynamic atoms. - #294

Open
jdm wants to merge 1 commit into
mainfrom
measure-dynamic
Open

Expose a method to return the memory usage of all dynamic atoms.#294
jdm wants to merge 1 commit into
mainfrom
measure-dynamic

Conversation

@jdm

@jdm jdm commented May 20, 2025

Copy link
Copy Markdown
Member

We need to perform a manual calculation because https://github.com/bholley/malloc_size_of_derive/ does not contain a MallocSizeOf implementation for [...].

Comment thread src/dynamic_set.rs Outdated
Comment thread Cargo.toml Outdated
Comment thread src/dynamic_set.rs Outdated
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Signed-off-by: Simon Sapin <simon@igalia.com>
@SimonSapin

Copy link
Copy Markdown
Member

@jdm I’ve pushed a rewrite of this PR on top of recent changes, without using derive, and without using recursion to walk the linked list

Could you check it with your Servo branch?

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.

3 participants