On Apr 16, 4:31 am, 袁嵩 Yuan Song <[email protected]> wrote:
> I also thought of using an environment variable as one-stop switch to
> turn on/off verbose log for all C and Java source files during
> compilation. It could be really useful.

There's a big difference between having verbose logging included but
disabled, and having it excluded.  The LOG_NDEBUG and Config.LOGV (or
local "verbose log enable") defines cause the messages to not be
compiled in at all, which makes the code faster and smaller.

This is particularly important in Java, where something like Log.v
(TAG, "The cow says " + moo) causes a bunch of allocations and
StringBuilder activity even if the Log.v call eventually does nothing.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to