Closed Bug 1634950 Opened 7 months ago Closed 7 months ago

Add logs for event dispatch and run to track them in logan along network logs

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: mayhemer, Assigned: mayhemer)

Details

Attachments

(1 file)

We (necko) are constantly facing questions about delays in the networking code. We want to be able to give quick and confident answers. This is always a scheduling problem. While we don't have good tools to monitor and diagnose scheduling, I want to add a minimal logging to at least track nsIRunnables in nsThreads and integrate it to logan. TaskTracer is useless, Backtrack's been buried. Logs are simple and quick.

Please consider also adding Profiler labels and markers -- unless you think it wouldn't help with this particular issue?
See related meta bug 1553419 if you want to add your ideas there.
cc:Julien who knows most about Profiler network things.

But now I see your logan project is probably much easier to use for this bug here; and I'm personally intrigued!

Sorry, no profile integration here. This is more to mimic TaskTracer. I want to include additional diagnostic info into our biggest source of insight - MOZ_LOG, nothing more.

Attachment #9145417 - Attachment description: Bug 1634950 - Add event dispatch-and-run MOZ_LOG to our xpcom threads, r=erahm → Bug 1634950 - Add event dispatch-and-run MOZ_LOG to our xpcom threads, r=froydnj
Pushed by honzab.moz@firemni.cz:
https://hg.mozilla.org/integration/autoland/rev/a9cbfed977e8
Add event dispatch-and-run MOZ_LOG to our xpcom threads, r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.