Sven Neumann writes:
> What does gmemusage display? Does it only look at malloc'ed pages or
> does it also take code size into account?

I'm not sure. I think it's all of the above.

> On Fri, 2007-07-13 at 15:47 -0700, Akkana Peck wrote:
> > I played around with gmemusage to get a feel for what was going
> > on. GIMP 2.3 uses between 33.9 and 35.0 Mb on startup (no images
> > loaded, and I don't know why it isn't always the same). For
> > comparison, 2.2.13 uses about 13.9 Mb at startup, so it's increased
> > by a factor of about 2.5 just for the base app, before images.
> That is most likely because your copy of gimp-2.3 has debugging symbols
> while your copy of gimp-2.2 doesn't. I wouldn't be surprised if gimp-2.3

That's a good point! But surprisingly, stripping the gimp-2.3 binary
and all the libraries in lib doesn't make much difference -- the
stripped 2.3 still takes 33M at startup.

Top showed:
             VIRT      RES         SHR         %MEM
gimp 2.3    56600      24m         10m         13.1
gimp 2.2    35984      20M        9.8m         11.2

I haven't tested in valgrind yet, or with G_SLICE=always-malloc,
but I'll do some more experimenting (probably not for a few days ...
I have some projects coming due).

Gimp-developer mailing list

Reply via email to