Leak Monitor integration?

23 views
Skip to first unread message

Kroc Camen

unread,
Dec 21, 2006, 1:41:30 PM12/21/06
to Firebug
Leak Monitor http://dbaron.org/mozilla/leak-monitor/ is an extension to
check for a specific clutch of memory leaks caused by certain coding
techniques. The problem is that the extension just plain sucks. You
can't limit it to certain domains, and it's only interface is an
anoying pop-up.

Firebug's great console would be much more appropriate for warning the
user of memory leaks in their javascript.

Regards,
Kroc.

Joe Hewitt

unread,
Dec 26, 2006, 6:10:27 PM12/26/06
to fir...@googlegroups.com
I agree, this would be handy. You might want to contact David Baron
and ask him to adapt Leak Monitor
for Firebug. The extension's source is not publicly available (that
I have seen,
at least), so I can't do it myself.

- Joe

sylvain...@gmail.com

unread,
Dec 27, 2006, 12:41:54 PM12/27/06
to Firebug
I think the sources are available. You can have a look there:

http://dbaron.org/mozilla/leak-monitor/

Regards,
Sylvain

Mark Kahn

unread,
Dec 28, 2006, 2:09:23 PM12/28/06
to fir...@googlegroups.com
The problem with leak monitor is that it's firefox specific. You can
have code that leaks in every other browser, but since firefox is
actually pretty good about garbage collection (way better than IE
anyway), you'd never notice when testing in firefox.

We need -real- leak detection which doesn't really exist. i.e.
showing leaks before the page is unloaded since firefox can clean up a
good deal of those when the page is unloaded.

-Mark

Kroc Camen

unread,
Dec 28, 2006, 2:29:16 PM12/28/06
to Firebug
Whilst that's true - something is better than nothing.
Something else that would be useful would be to profile memory usage
over time in a graph.
In an ideal world, Firebug would be a XUL app and be capable of
debugging IE too, but we have to work with what we've got.

Reply all
Reply to author
Forward
0 new messages