Add logging for e10s parent-child channels

RESOLVED FIXED in mozilla37

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: dragana, Assigned: dragana)

Tracking

unspecified
mozilla37
Points:
---

Firefox Tracking Flags

(e10s+)

Details

Attachments

(1 attachment, 3 obsolete attachments)

(Assignee)

Description

4 years ago
Additional logging for e10s channels
(Assignee)

Updated

4 years ago
Assignee: nobody → dd.mozilla
tracking-e10s: --- → +
(Assignee)

Comment 1

4 years ago
Created attachment 8537955 [details] [diff] [review]
added logging v1
Attachment #8537955 - Flags: review?(jduell.mcbugs)
(Assignee)

Comment 2

4 years ago
Created attachment 8537960 [details] [diff] [review]
add logging v1
Attachment #8537955 - Attachment is obsolete: true
Attachment #8537955 - Flags: review?(jduell.mcbugs)
Attachment #8537960 - Flags: review?(jduell.mcbugs)
(Assignee)

Updated

4 years ago
Status: NEW → ASSIGNED

Comment 3

4 years ago
Comment on attachment 8537960 [details] [diff] [review]
add logging v1

Review of attachment 8537960 [details] [diff] [review]:
-----------------------------------------------------------------

::: netwerk/protocol/http/HttpChannelChild.cpp
@@ +216,5 @@
>    {}
>  
>    void Run()
>    {
> +    LOG(("StartRequestEvent [this=%x]\n", mChild));

mChild is a pointer, so we need %x (IIRC %x is only 32 bits on some platforms that have 64 bit pointers: I'm pretty sure we had a bug where we converted %x -> %p everywhere for that reason).

@@ +643,5 @@
>  void
>  HttpChannelChild::DoPreOnStopRequest(nsresult aStatus)
>  {
> +  LOG(("HttpChannelChild::DoPreOnStopRequest [this=%p status=%d]\n",
> +       this, aStatus));

nsresults are uint32_t.  This patch has a mix of %x, %u, and %d for them.  %d would appear incorrect (though I don't know if it matters, ie if we have values that would be converted to negative ints).  Might as well switch to whichever of %x/%u is more predominant in the code.
Attachment #8537960 - Flags: review?(jduell.mcbugs) → review+
(Assignee)

Updated

4 years ago
Keywords: checkin-needed
Needs rebasing.
Keywords: checkin-needed
(Assignee)

Comment 6

4 years ago
Created attachment 8545924 [details] [diff] [review]
add logging v2

rebased
Attachment #8545816 - Attachment is obsolete: true
Attachment #8545924 - Flags: review+
(Assignee)

Updated

4 years ago
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/00fc776b6f55
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37

Updated

4 years ago
Depends on: 1120166
(Assignee)

Updated

4 years ago
No longer depends on: 1120166
You need to log in before you can comment on or make changes to this bug.