Closed Bug 1106896 Opened 9 years ago Closed 9 years ago

Improve mozSettings debugging capabilities

Categories

(Core :: DOM: Core & HTML, defect)

33 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37
Tracking Status
firefox35 --- wontfix
firefox36 --- wontfix
firefox37 --- fixed
b2g-v2.1 --- fixed
b2g-v2.2 --- fixed

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

Attachments

(2 files)

We need:
 - debug and verbose level of logging
 - better memory reporting to easily see blockage and leaking
We break down the logging capabilities into two classes: debug and
verbose. Verbose will help to track everything that happens, while debug
should just report error cases. We also augment memory reports with
values to help tracking potential issues like: queue blockage, leaking,
etc.
Attachment #8531343 - Flags: review?(kyle)
Attachment #8531343 - Flags: review?(kyle) → review+
Keywords: checkin-needed
Should we possibly take this farther and attach stacks to each lock if a certain debug pref is on, so we can trace who is owning them?
(In reply to Kyle Machulis (OUT OCT 1-NOV 30) [:kmachulis] [:qdot] (USE NEEDINFO?) from comment #3)
> Should we possibly take this farther and attach stacks to each lock if a
> certain debug pref is on, so we can trace who is owning them?

This is something I thought about, yes, but I was not sure about going down this road, given the amount of data this adds. Maybe we can do this in a follow up?
https://hg.mozilla.org/mozilla-central/rev/9107df18cdd9
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment on attachment 8531343 [details] [diff] [review]
Improve debug and error reporting in mozSettings r=qdot

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): none
User impact if declined: very hard to debug settings api lockup (bug 1105511)
Testing completed: on device and with mulet
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: none
Attachment #8531343 - Flags: approval-mozilla-b2g34?
Comment on attachment 8531343 [details] [diff] [review]
Improve debug and error reporting in mozSettings r=qdot

Discussed this with :fabice, although non-blocking, keeping in mind that there is no user impact and low risk here, helps a lot in debugging, hence approving this for uplift.
Attachment #8531343 - Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Needs rebasing for b2g34 uplift.
Flags: needinfo?(lissyx+mozillians)
We break down the logging capabilities into two classes: debug and
verbose. Verbose will help to track everything that happens, while debug
should just report error cases. We also augment memory reports with
values to help tracking potential issues like: queue blockage, leaking,
etc.
Okay, I've already lost more than one hour trying to push this to v2.1 for a try: mercurial does not want to apply my diff even if I generate it from the proper revision ...
Flags: needinfo?(lissyx+mozillians) → needinfo?(ryanvm)
Flags: needinfo?(ryanvm)
Branch patch seems ok
Flags: needinfo?(cbook)
Damn, how is it possible nobody spotted this: Services is loaded after we make use of it :(. It's not always working.
Depends on: 1110091
Blocks: 1110872
Depends on: 1186113
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.