RE: Size of application is huge
- From: "Andersen, Jan" <jandersen informatica com>
- To: "Michael L Torrie" <torriem chem byu edu>, <gtk-app-devel-list gnome org>
- Cc:
- Subject: RE: Size of application is huge
- Date: Thu, 5 Aug 2004 16:37:59 +0100
I don't mind posting the code, but it is rather much, I feel, what with all the Makefiles and all. I made it
with glade originally.
/jan
-----Original Message-----
From: Michael L Torrie [mailto:torriem chem byu edu]
Sent: Thu 05-Aug-04 23:17
To: gtk-app-devel-list gnome org
Cc:
Subject: RE: Size of application is huge
On Thu, 2004-08-05 at 08:58, Andersen, Jan 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).
Post your code and I'm sure someone can tell you where the problems
are. This sounds very much like a huge memory leak in your code
somewhere.
Michael
BTW - I use Mandrake 10 if that makes any difference.
/jan
-----Original Message-----
From: John Cupitt [mailto:jcupitt gmail com]
Sent: Thu 05-Aug-04 22:48
To: Andersen, Jan
Cc: gtk-app-devel-list gnome org
Subject: Re: Size of application is huge
That doesn't sound right. If I run
gtk+-2.4.4/tests/testtreeview
(makes a complicated treeview with about 1500 rows in total) the
process size (both RSS and size) is about 6 MBytes.
Maybe you have some kind of frightening leak in the way you build the trees?
On Thu, 5 Aug 2004 15:12:12 +0100, Andersen, Jan
<jandersen informatica com> wrote:
I have made a simple (simplish) application: it reads a configuration and based on this it creates an
information display. The information is organized thus:
- The toplevel is a notebook with a number of tabs.
- Each tab contains another notebook with a number of tabs
- Each tab in those notebooks contains a GtkTreeView displaying a GtkListStore with up to <100 lines of
text.
The toplevel notebook typically has 8 pages and each second level notebook has 4 pages.what shocks me is
the fact that it uses about 318MB from start. Another problem is that after several hours of use it will
sometimes allocate everything in the machine (up to 1.5GB - all real and virtual storage), then it will
dump it all as a core file.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Michael L Torrie <torriem chem byu edu>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]