comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Yes it is possible. Re: Stackusage at runtime
Date: Wed, 5 Nov 2008 01:31:14 -0800 (PST)
Date: 2008-11-05T01:31:14-08:00	[thread overview]
Message-ID: <3c9a589e-da1c-4d8c-b42e-e84bcde38739@g17g2000prg.googlegroups.com> (raw)
In-Reply-To: vz1Qk.16070$_Y1.14888@bgtnsc05-news.ops.worldnet.att.net

anon wrote:
> To monitor the main (system) stack that GNAT uses, you need to alter the
> System.Memory package to include some monitoring information like in
> the following code. Some may not like it but it get the job done.
[...]

>   begin
>     Put ( "Before create Integer := " ) ;
>     S_IO.Put ( Stack_Monitor ) ;
>     A := new Integer ;
>     Put ( " after create operation := " ) ;
>     S_IO.Put ( Stack_Monitor ) ;
[...]

As your example shows, your technique does not address the OP's
problem; it monitors heap allocations (done via new), not the stack
(done by declaring variables in subprograms).

--
Ludovic Brenta.



  reply	other threads:[~2008-11-05  9:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  7:55 Stackusage at runtime andi.vontobel
2008-11-04 11:44 ` Georg Bauhaus
2008-11-04 12:56   ` Andy
2008-11-04 15:40 ` Stuart
2008-11-04 19:05   ` Andi
2008-11-04 20:44     ` Niklas Holsti
2008-11-05 18:50     ` Niklas Holsti
2008-11-04 19:41 ` Yes it is possible. " anon
2008-11-05  9:31   ` Ludovic Brenta [this message]
2008-11-05 21:55     ` anon
2008-11-05 23:07       ` Ludovic Brenta
2008-11-06  5:00         ` anon
2008-11-06 10:17           ` Georg Bauhaus
2008-11-06 18:18         ` Pascal Obry
2008-11-07 10:19           ` Georg Bauhaus
2008-11-07 11:58           ` anon
2008-11-04 20:07 ` Per Sandberg
2008-11-05  7:33   ` Andy
2008-11-05 16:50     ` Per Sandberg
2008-11-05 17:31       ` Jean-Pierre Rosen
2008-11-05 18:19         ` Keith Thompson
2008-11-05 21:38   ` nobody
2008-11-05 20:14 ` sjw
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox