Note that for JS objects (and JS strings very soon), you can track
allocation stacks with the Debugger API:

https://developer.mozilla.org/en-US/docs/Tools/Debugger-API/Debugger.Memory

On Thu, Sep 17, 2015 at 10:55 AM, Andrew McCreight <amccrei...@mozilla.com>
wrote:

> On Thu, Sep 17, 2015 at 7:42 AM, Andrew McCreight <amccrei...@mozilla.com>
> wrote:
>
> >
> >
> > On Thu, Sep 17, 2015 at 5:31 AM, Gerald Squelart <squel...@gmail.com>
> > wrote:
> >
> >> Good stuff!
> >>
> >> I hope you'll consider tracking AddRef's and Release's as well.
> >>
> >> I recently experimented with that for a troubled RefCounted class [1],
> >> and it was very useful to find which AddRef didn't have its
> corresponding
> >> Release.
> >>
> >
> > There's already refcount logging for this:
> >   http://www-archive.mozilla.org/performance/refcnt-balancer.html
> >
> >
> Olli points out that I should actually link to the more modern page for
> this:
>
>
> https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Refcount_tracing_and_balancing
>
> Anybody who wants help with refcount logging should feel free to get in
> touch with me and I can help walk them through it.
>
>
> > It is generally too spammy to include in the TreeHerder log, but it can
> be
> > useful.
> >
> > Andrew
> >
> >
> >
> >>
> >> Cheers,
> >> Gerald
> >>
> >> [1] https://hg.mozilla.org/try/rev/8dffaf0d2acf
> >> _______________________________________________
> >> dev-platform mailing list
> >> dev-platform@lists.mozilla.org
> >> https://lists.mozilla.org/listinfo/dev-platform
> >>
> >
> >
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to