The comment goes away in that PR :)

As for Arc, I think the plan is to divide by the refcount; to get a
"weight" sort of thing.

Note that we only need to worry about shared references, not all non-owning
references (borrows can be ignored)

-Manish Goregaokar

On Mon, Jun 1, 2015 at 9:29 PM, Jack Moffitt <[email protected]> wrote:

> > I've written a draft of a blog post about memory profiling in Firefox
> > vs. Servo, which focuses on the Rust features that make the task more
> > pleasant in Servo. There's a draft copy here:
> > http://njn.valgrind.org/measuring.html
>
> Very nice!
>
> One question I still had at the end was whether things like Arc<Image>
> (non-owning references) are accounted for somewhere?
>
> Also,  there's a comment in util/mem.rs that HeapSizeOf would be nice
> to derive automatically, but that now works according to your blog
> post.
>
> jack.
> _______________________________________________
> dev-servo mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-servo
>
_______________________________________________
dev-servo mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to