On Fri, Feb 21, 2014 at 7:15 AM, Gabriele Svelto <gsve...@mozilla.com>wrote:

> On 20/02/2014 18:57, arpad.bor...@googlemail.com wrote:
> > And yes, allocation counts would be awesome. Any idea how to get to
> those? Or even better: number of average live objects, since short lived
> allocations do not matter that much.
>
> Just thinking out loud: some memory reporters should already cover some
> of those objects, could we make them return object counts instead of
> sizes? Then we might feed that list of wasted space to about:memory's
> logic in order to display the amount of wasted space per class of objects.
>

I've wanted this on various occasions, too. One example where it would also
be useful is for situations where you want to add a field to some object,
but aren't sure how many instances of the object there are. Sure, you can
add the field and compare the used memory, but just looking at a count
would be more straight-forward.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to