Re: Memory leaks in Pango ?
- From: Olivier Fourdan <fourdan xfce org>
- To: gtk-app-devel-list gnome org
- Subject: Re: Memory leaks in Pango ?
- Date: 21 May 2002 18:38:59 +0200
Hi all,
Well, I might be fooled by memprof actually. I've let the process run
for about 1 hour and memprof was reporting about 65Mb of memory usage
(!) for gtktest
But, if I actually look at which process consumes memory, well, it's
memprof.
So, I conclude the problem is with memprof wrongly reporting process
memory usage.
How reliable is memprof ?
Cheers,
Olivier.
On Tue, 2002-05-21 at 09:51, Olivier Fourdan wrote:
Hi Havoc,
Am I missing something here ? I took a quick look at the function in
pango sources and did not notice anything wrong.
Try "memprof" and see what's up.
Well, actually, this is memprof that shows that the memory keeps
growing. memprof doesn't report any leak there (but a few elsewhere),
but still, the memory usage allocated by the process, according to
memprof, grows from 1Mb up to 8Mb as much as the routine is called.
It's worth noting that I did the same test with testgtk, and some
widgets such as the "range control" shows exactly the same behaviour
(which is not so surprising since the range control widget use exactly
the same techniques as I do in my window manager).
As you move the range controls in testgtk, you can watch the memory
growing very fast.
I'm pretty sure there is something wrong somewhere. I did the test on
another system, just to make sure, and got the same result.
The test is fairly simple to reproduce :
memprof ./testgtk
Select range widget
Move the range buttons a few times and watch the total bytes alocated in
memprof.
Cheers,
--
Olivier <fourdan xfce org> http://www.xfce.org
-----------------------------------------------------------------------
XFce is a lightweight desktop environment for various *NIX systems.
Designed for productivity, it loads and executes applications fast,
while conserving system resources. XFce is all free software, released
under GNU General Public License. Available from http://www.xfce.org
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Olivier <fourdan xfce org> http://www.xfce.org
-----------------------------------------------------------------------
XFce is a lightweight desktop environment for various *NIX systems.
Designed for productivity, it loads and executes applications fast,
while conserving system resources. XFce is all free software, released
under GNU General Public License. Available from http://www.xfce.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]