Re: Size of application is huge
- From: John Cupitt <jcupitt gmail com>
- To: "Andersen, Jan" <jandersen informatica com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Size of application is huge
- Date: Thu, 5 Aug 2004 15:08:59 +0000
I'd try memprof, it's a very handy tool for tracking memory leaks. It
uses LD_PRELOAD to intercept malloc/free and takes a copy of the stack
for each call. On exit it'll show you a backtrace for every malloc()
which wasn't freed.
There should be a package for it on your mandrake CD, otherwise get
the source from
http://www.gnome.org/projects/memprof/
On Thu, 5 Aug 2004 15:58:39 +0100, Andersen, Jan
<jandersen informatica com> wrote:
I don't think I do it wrong, but it is my first application with GNOME (always stuck to server code, much
cleaner). I tried to recompile without -g, but it still uses 317MB. And I put in getchars() after each
widget was allocated - this shows me that they each time I allocate a notebook or liststore the application
grows about 8 - 10MB (seen in gnome-system-monitor).
BTW - I use Mandrake 10 if that makes any difference.
/jan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]