Closed Bug 723742 Opened 13 years ago Closed 12 years ago

Set various debugging logs as a preference and have them turned off for the release version of Fennec Native

Categories

(Firefox for Android Graveyard :: General, defect, P5)

13 Branch
ARM
Android
defect

Tracking

(fennec+)

RESOLVED WONTFIX
Tracking Status
fennec + ---

People

(Reporter: nhirata, Assigned: cpeterson)

Details

(Keywords: perf)

As above. To increase performance, we should turn stuff from logging so much, unless it's needed for troubleshooting purposes. I am uncertain how much we would gain from it, but I noticed that not having gralloc being logged to having gralloc being logged makes certain things like flickering more noticeable.
(In reply to Naoki Hirata :nhirata from comment #0) > As above. > > To increase performance, we should turn stuff from logging so much, unless > it's needed for troubleshooting purposes. > > I am uncertain how much we would gain from it, but I noticed that not having > gralloc being logged to having gralloc being logged makes certain things > like flickering more noticeable. Other than gralloc, are there other known examples of extraneous logging that we default with on? Maybe provide a few more specific examples? i do agree if it can save us a little more performance wins, we should do it.
Some more examples: - bug 722414 : performance - Panning - zooming - typing (on a VKB) - tabs switching/awesome page loading - loading a page (viewport/GeckoBrowserProvider)
tracking-fennec: --- → ?
According to http://developer.android.com/reference/android/util/Log.html "debug logs are compiled in but stripped at runtime". I assume this only happens on devices for which development mode is not turned on. I think a lot of the logs are already debug-level, can we verify whether or not they show up on a non-developement device? Although even if doesn't show up, it might still be worth removing since the log lines will still (I think) create strings before throwing them away which will stress the GC.
chris, can you confirm?
Assignee: nobody → cpeterson
tracking-fennec: ? → +
The Android docs' comment that "Debug logs are compiled in but stripped at runtime" is just a poorly-worded recommendation. Google says this is a doc bug and that "logs cannot be 'stripped' at runtime": https://code.google.com/p/android/issues/detail?id=14015 You can verify this by watching third-party applications' debug messages in `adb logcat`. ProGuard can be configured to strip out _calls_ to android.util.Log() at compile-time, but (as kats points out) the string-building of log messages will remain. Google recommends checking Log.isLoggable() or a LOGD flag before calling to a logging method to see if the tag will be logged: http://developer.android.com/reference/android/util/Log.html#isLoggable%28java.lang.String,%20int%29 I think bug can be closed as a duplicate of bug 721461 (Add LOGD checks so Fennec can skip logging (and log message construction) when logcat is not listening).
Priority: -- → P3
Priority: P3 → P5
WONTFIX because bug 815684 will bundle logcat message with our crash reports.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.