comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Any Suggestion How To Accomplish A Debug Macro?
Date: Fri, 02 Jan 2015 21:37:47 +0100
Date: 2015-01-02T21:37:47+01:00	[thread overview]
Message-ID: <m86vi9$m0d$1@dont-email.me> (raw)
In-Reply-To: <m7v7vd$1rd$1@loke.gir.dk>

Le 30/12/2014 23:11, Randy Brukardt a écrit :
> But I don't think there is much reason (outside of the memory-constrained 
> embedded system, or the system that has to be formally proved or validated) 
> to ever removing the tracing. It's important to be able to turn it off, of 
> course, but the runtime cost of it being off is so minimal (primarily 
> caching/paging effects) that removing it isn't worth the effort. (And if you 
> plan to keep it around forever, you'll spend more time making the traces 
> make sense in the future -- which typically pays off very quickly.)

I fully agree with that.
In AdaControl, there is a sophisticated tracing capability, and it's
enabled with a command line option. If a user has a problem, he just has
to rerun the program with -x and send me the output - that's usually
enough to identify the problem. I can't tell how much time it saved me.
And since AdaControl spends about 65% of its time in ASIS, the cost of
testing a boolean is neglectible.
-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr


  parent reply	other threads:[~2015-01-02 20:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30  3:12 Any Suggestion How To Accomplish A Debug Macro? Hubert
2014-12-30 11:14 ` Simon Wright
2014-12-30 11:45   ` Hubert
2014-12-30 20:07   ` Brad Moore
2014-12-30 22:11     ` Randy Brukardt
2015-01-01 12:28       ` Georg Bauhaus
2015-01-02 20:37       ` J-P. Rosen [this message]
2015-01-02 21:13         ` Dmitry A. Kazakov
2015-01-02 21:52           ` Randy Brukardt
2015-01-02 22:17             ` Niklas Holsti
2014-12-31  0:15     ` Luke A. Guest
2014-12-30 16:24 ` sbelmont700
2014-12-30 18:21   ` Simon Wright
replies disabled

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