From: Markus E Leypold <development-2006-8ecbb5cc8aREMOVETHIS@ANDTHATm-e-leypold.de>
Subject: Re: Finding out minimal allocation unit
Date: Tue, 03 Apr 2007 17:17:22 +0200
Date: 2007-04-03T17:17:22+02:00 [thread overview]
Message-ID: <eiircd32t9.fsf@hod.lan.m-e-leypold.de> (raw)
In-Reply-To: 20070403153747.1c4f46ef@cube.tz.axivion.com
Stefan Bellon <sbellon@sbellon.de> writes:
> Martin Krischik wrote:
>
>> So I believe the OP wanted to know how to find out how much memory
>> for "new"ed object is allocated in total in order to know if extra
>> optimisation is needed.
>
> Exactly. :-)
I'm only guessing, but here is my approach for GNAT: GNAT is AFAIK
linked against libc (at least on Unix). On linux that is glibc, which
provides methods to catch/trace malloc() requests. My suggestion is
that you do that and look which sizes are actually requested from
malloc().
Another option: Allocate objects in a loop and observe when sbrk()
occurs.
Regards -- Markus
next prev parent reply other threads:[~2007-04-03 15:17 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-03 12:43 Finding out minimal allocation unit Stefan Bellon
2007-04-03 13:22 ` Georg Bauhaus
2007-04-03 13:28 ` Stefan Bellon
2007-04-03 13:34 ` Martin Krischik
2007-04-03 13:37 ` Stefan Bellon
2007-04-03 15:17 ` Markus E Leypold [this message]
2007-04-04 17:16 ` Robert A Duff
2007-04-05 8:55 ` Markus E Leypold
2007-04-05 17:55 ` Stefan Bellon
2007-04-06 1:40 ` Randy Brukardt
2007-04-06 8:06 ` Stefan Bellon
2007-04-06 11:06 ` Markus E Leypold
2007-04-03 23:53 ` Randy Brukardt
2007-04-05 6:12 ` Stefan Bellon
2007-04-05 7:35 ` Martin Krischik
2007-04-05 17:58 ` Stefan Bellon
2007-04-07 9:27 ` Martin Krischik
2007-04-10 21:42 ` Robert A Duff
2007-04-05 13:07 ` Robert A Duff
2007-04-05 18:02 ` Stefan Bellon
2007-04-06 1:31 ` Randy Brukardt
2007-04-06 8:10 ` Stefan Bellon
2007-04-06 17:17 ` Simon Wright
2007-04-06 12:38 ` Stephen Leake
2007-04-03 14:12 ` Larry Kilgallen
2007-04-03 13:48 ` Robert A Duff
2007-04-03 16:45 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox