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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Any Suggestion How To Accomplish A Debug Macro? Date: Fri, 02 Jan 2015 21:37:47 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 2 Jan 2015 20:37:29 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="22541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++XTjswBNMRvoELL2sGZFi" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: Cancel-Lock: sha1:UxZ0lNESyHeOIZsin0rd/NOeM9w= Xref: news.eternal-september.org comp.lang.ada:24317 Date: 2015-01-02T21:37:47+01:00 List-Id: 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