Closed Bug 1618445 Opened 6 years ago Closed 6 years ago

Add better logging to process switching code

Categories

(Core :: DOM: Content Processes, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: pbone, Assigned: pbone)

Details

Attachments

(6 files)

Add better logging (printf debugging ;-) ) to process switching code to make it easier to make changes and find problems.

  • Create new logger.
  • Use logger for process switch logging.
  • Remove "[process-switch]: " string from log messages, it is redundant.

This may eventually move to a whole new module if/when process switching
moves there.

Depends on D65439

FYI mattwoodrow,

I may add more patches yet, especially to debug E10SUtils methods like getRemoteTypeForURIObject and shouldLoadURI and friends.

Attachment #9130969 - Attachment description: Bug 1618445 - Improve logging in SessionStore.jsm r=mattwoodrow → Bug 1618445 - pt 1. Improve logging in SessionStore.jsm r=mattwoodrow
Attachment #9130970 - Attachment description: Bug 1618445 - Move process switch logging to E10SUtils r=mattwoodrow → Bug 1618445 - pt 2. Move process switch logging to E10SUtils r=mattwoodrow
Attachment #9130971 - Attachment description: Bug 1618445 - Move session store logging into SessionStoreInternal r=mattwoodrow → Bug 1618445 - pt 3. Move session store logging into SessionStoreInternal r=mattwoodrow
Attachment #9130972 - Attachment description: Bug 1618445 - Use the new logger for existing E10SUtils debug messages r=mattwoodrow → Bug 1618445 - pt 4. Use the new logger for existing E10SUtils debug messages r=mattwoodrow

It might not be clear from the diff (at least from mercurial it's not) but
I've moved the internals of validatedWebRemoteType() into an inner function
to make the logging calls before/after it easier to see together.

Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c09a442d8ddf pt 1. Improve logging in SessionStore.jsm r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/79ae5f86d927 pt 2. Move process switch logging to E10SUtils r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/439d0b9ba0fc pt 3. Move session store logging into SessionStoreInternal r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/846b67024a9a pt 4. Use the new logger for existing E10SUtils debug messages r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/4281c434f737 pt 5. Add logging to validatedWebRemoteType() r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/0a996e80d92a pt 6. Add some logging to shouldLoadUri r=mattwoodrow

Thanks Narcis,

I spoke with mcrr8 and he suggested whitelisting these leaks. Seems to be working on try and I'm landing again now.

Flags: needinfo?(pbone)
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/83770ec96b2e pt 1. Improve logging in SessionStore.jsm r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/65357be13f82 pt 2. Move process switch logging to E10SUtils r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/4665050e46f0 pt 3. Move session store logging into SessionStoreInternal r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/d9ea56821b1a pt 4. Use the new logger for existing E10SUtils debug messages r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/7244027ef6ed pt 5. Add logging to validatedWebRemoteType() r=mattwoodrow https://hg.mozilla.org/integration/autoland/rev/01ee611f9740 pt 6. Add some logging to shouldLoadUri r=mattwoodrow
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: