From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,634259facc42df7a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news2.google.com!news.germany.com!feeder.news-service.com!proxad.net!cleanfeed1-b.proxad.net!nnrp4-1.free.fr!not-for-mail Date: Wed, 05 Jul 2006 21:39:22 +0200 From: guillaume.portail@grospied.enanglais.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Conditional compilation of debug traces without cpp References: <44aaae35$0$5389$626a54ce@news.free.fr> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <44ac1562$0$10269$636a55ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 05 Jul 2006 21:39:14 MEST NNTP-Posting-Host: 82.228.125.157 X-Trace: 1152128354 nnrp4-1.free.fr 10269 82.228.125.157:33537 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:5510 Date: 2006-07-05T21:39:14+02:00 List-Id: Jean-Pierre Rosen wrote: > Switching packages is then not more difficult than changing a #define... Nice, thank you ! And thank you for your Debug package, I already know about it. But don't you think that the elaboration of the calls will still exist ? Executing the statement : Null_Proc ("I was here" & Function_Call(A+12)); will always produce a call to Function_Call, even if Null_Proc has a null body, I guess. I have zillion of 'complicated' traces like this : Traces.Put_Info ("Mouse at home, ears=" & (+Mice.ears) & "tong=" & (+Mice.tong) ... & "legs=" & (+Mice.legs)); where "+" is a rename of some kind of 'Image, may be a sophisticated one. In general returning fixed-length strings, but not always. So I suspect that theses traces call every "+" involved in the elaboration of the call, maybe doing heap allocation, even when Trace.Put_info is null. -- Thierry bernier