Closed Bug 712037 Opened 13 years ago Closed 13 years ago

[viewport] Insufficient logging to diagnose viewport bugs

Categories

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

All
Android
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(2 files, 1 obsolete file)

Many viewport-related bugs are being reported, but many of these issues are hard to reproduce, so we need more logging in the published builds to capture necessary information. This logging can be removed if/when all the bugs are fixed.
Attached patch Logging! (obsolete) — Splinter Review
Attachment #582873 - Flags: review?(chrislord.net)
Comment on attachment 582873 [details] [diff] [review] Logging! Review of attachment 582873 [details] [diff] [review]: ----------------------------------------------------------------- While we definitely want more logging for error cases, this would make us far too verbose. It'd be impossible to debug anything else without filtering out these statements first (and I wonder if logging so frequently may have a noticeable effect on performance). Would it be possible to depend on a pref or environment variable? If not, is this really a good idea? I'm open to being persuaded.
Attachment #582873 - Flags: review?(chrislord.net) → review-
I'm ok with this amount of logging, but could we have a more succinct description of the viewport metrics? That would cut down the chatter a bit.
As per the discussion during the gfx vidyo meeting, we really need this in to be able to diagnose these paper cut issues. I've compacted down the message so it's less intrusive and has a smaller performance impact. And we can take this out once we have the bugs figured out.
Attachment #582873 - Attachment is obsolete: true
Attachment #582966 - Flags: review?(pwalton)
Priority: -- → P4
Comment on attachment 582965 [details] [diff] [review] (1/2) Add a toString() on the Viewport for succinct stringification Review of attachment 582965 [details] [diff] [review]: ----------------------------------------------------------------- Looks fine to me.
Attachment #582965 - Flags: review+
Comment on attachment 582966 [details] [diff] [review] (2/2) Add logging for viewport and panzoom changes Review of attachment 582966 [details] [diff] [review]: ----------------------------------------------------------------- Also looks fine. My only comment is that perhaps the logging in LayerController should also log the given parameters where appropriate (so all functions except setViewportMetrics).
Attachment #582966 - Flags: review+
Thanks for the reviews! > Also looks fine. My only comment is that perhaps the logging in > LayerController should also log the given parameters where appropriate (so > all functions except setViewportMetrics). For most of those functions the parameters just get set straight into the viewport, so the viewport dump includes the the parameters indirectly. I added the zoom factor to the scale functions though, since that might be useful.
Attachment #582965 - Flags: review?(pwalton)
Attachment #582966 - Flags: review?(pwalton)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Blocks: 717060
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: