[Adium-devl] "Debug logger" plugin
Augie Fackler
durin42 at gmail.com
Fri Feb 9 18:14:24 UTC 2007
On Feb 9, 2007, at 12:00 PM, Evan Schoenberg wrote:
> http://trac.adiumx.com/wiki/AdiumMeetings/2007-02-08 :
> Mac-arena suggested a plug-in to enable the debug logger, which
> would always be present but simply turned off in release builds (as
> opposed to not there). And it can have a nag screen, so the user
> doesn't forget about it and so it doesn't get misused for evil
> purposes.
>
> At present, debug logging is perfectly free in release builds, no
> matter how expensive the process of building the debug log. For
> example:
> AILog(@"The results at this point would be %@",[self
> lengthyResultsCalculation]);
>
> causes a performance hit in deployment-debug but is replaced by
> /* */
> in deployment - free!
>
> To make a plugin as described possible, I believe a runtime check
> of each passed debug string would be necessary.
>
> I would come down on the side of having a debug build for each
> release available -- preferably created automatically by the
> release makefile -- because 99% of users will never want debug
> logging, and that way we don't cause a slowdown for that vast
> majority.
I concur - having all the debug cruft in there to slow down average
users seems rather pointless...
>
> -Evan_______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070209/b4cab6b5/attachment.sig>
More information about the devel
mailing list