Extension that alerts about some chrome leaks

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Extension that alerts about some chrome leaks

L. David Baron
[ Resending this without GPG signature in the hopes that it might make
it through to news.mozilla.org. ]

I've written a Firefox extension that pops up an alert dialog to warn
chrome and extension developers about one particular type of leak.  It
warns when chrome windows close but leave other code pointing at their
JavaScript objects.  The alert shows some information about the objects
that leaked (properties of objects, plus file/line for functions).  More
details at:

http://dbaron.org/mozilla/leak-monitor/
https://addons.mozilla.org/firefox/2490/

(It occurred to me after posting this that there's no reason that it
shouldn't work with Thunderbird other than that I didn't say so in the
manifest; I'll test that before posting a new version.)

I'm interested in some level of feedback, although I don't have much
time in the next few weeks to process it.

There are some other leak monitoring features that I'd like to add
eventually, although maybe small pieces are better than big ones.
mconnor also suggested that it might be easier for developers like him
if this were part of the tree.

-David

--
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Extension that alerts about some chrome leaks

Daniel Cater
L. David Baron wrote:

> I've written a Firefox extension that pops up an alert dialog to warn
> chrome and extension developers about one particular type of leak.  It
> warns when chrome windows close but leave other code pointing at their
> JavaScript objects.  The alert shows some information about the objects
> that leaked (properties of objects, plus file/line for functions).  More
> details at:
>
> http://dbaron.org/mozilla/leak-monitor/
> https://addons.mozilla.org/firefox/2490/
>
> (It occurred to me after posting this that there's no reason that it
> shouldn't work with Thunderbird other than that I didn't say so in the
> manifest; I'll test that before posting a new version.)
>
> I'm interested in some level of feedback, although I don't have much
> time in the next few weeks to process it.
>
> There are some other leak monitoring features that I'd like to add
> eventually, although maybe small pieces are better than big ones.
> mconnor also suggested that it might be easier for developers like him
> if this were part of the tree.
>
> -David
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dev-performance mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-performance

I've installed it and it works, but when the leak is due to Mozilla code, I'm
struggling to work out how to file a bug. With leak-guage, one can just copy the
output to the bug, but with this it's more complicated. Help -> Check for
Updates... leaks, but I wouldn't know what to write in a summary.

Dan.
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Extension that alerts about some chrome leaks

Daniel Cater
In reply to this post by L. David Baron
L. David Baron wrote:

> I've written a Firefox extension that pops up an alert dialog to warn
> chrome and extension developers about one particular type of leak.  It
> warns when chrome windows close but leave other code pointing at their
> JavaScript objects.  The alert shows some information about the objects
> that leaked (properties of objects, plus file/line for functions).  More
> details at:
>
> http://dbaron.org/mozilla/leak-monitor/
> https://addons.mozilla.org/firefox/2490/
>
> (It occurred to me after posting this that there's no reason that it
> shouldn't work with Thunderbird other than that I didn't say so in the
> manifest; I'll test that before posting a new version.)
>
> I'm interested in some level of feedback, although I don't have much
> time in the next few weeks to process it.
>
> There are some other leak monitoring features that I'd like to add
> eventually, although maybe small pieces are better than big ones.
> mconnor also suggested that it might be easier for developers like him
> if this were part of the tree.
>
> -David
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dev-performance mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-performance

OK, some bugs that have been filed using the extension include:
Bug 336955 (https://bugzilla.mozilla.org/show_bug.cgi?id=336955)
Bug 336956 (https://bugzilla.mozilla.org/show_bug.cgi?id=336956)
Bug 336961 (https://bugzilla.mozilla.org/show_bug.cgi?id=336961)
Bug 336973 (https://bugzilla.mozilla.org/show_bug.cgi?id=336973)

However, this extension appears to trigger a crash (at least, I can't reproduce
with it disabled, but consistently with it enabled) - bug 336915
(https://bugzilla.mozilla.org/show_bug.cgi?id=336915).

Dan.
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Extension that alerts about some chrome leaks

twentyafterfour
I second the crash report.... I have not seen firefox 1.5.x crash since
beta stage, until I installed this extension. I though it was a bug
with my own extension work but disabling the leak monitor seems to have
fixed the crashing problem.

_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance