[network markers] There's no end marker when a channel is stopped early
Categories
(Core :: Gecko Profiler, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: julienw, Assigned: julienw)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
Coming from Florian:
Lots of network markers that don't end in this profile: https://share.firefox.dev/38vGO7u
it's very likely because the channel is canceled at https://searchfox.org/mozilla-central/rev/f6ffb71dca9eb491e85aa95042380b2602008b00/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm#1511
I think this is the case for a bunch of other cases too:
- when a request is aborted because of tracking protection
- when in offline mode
I think we'll introduce one or more new "end status" besides LOAD_STOP and LOAD_REDIRECT.
Assignee | ||
Comment 1•3 years ago
|
||
This patch supports channel cancelations with network markers.
Because of all the possible ways to stop a channel and hence all
possible end markers, it also introduces a new boolean to reduce the
complexity. Indeed it happens that 2 "end functions" are called, but we
need to insert only 1 end marker to have a well-formed result in the
Profiler frontend.
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
This patch supports channel cancelations with network markers.
Assignee | ||
Comment 3•3 years ago
|
||
Here is a new try with additional commits: https://treeherder.mozilla.org/jobs?repo=try&revision=b95ad875091f324bd1b12e57ea31c356eceb3399
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Intercepted requests can also be canceled.
Depends on D122111
Assignee | ||
Comment 5•3 years ago
|
||
This ensures our users will use the latest version of the frontend when
capturing 'cancel' network markers.
Depends on D123254
Assignee | ||
Comment 6•3 years ago
|
||
Requests may be canceled before AsyncOpen is even called. In that case
we don't want to add START markers, and we don't want to add CANCEL
markers for these requests that didn't even start yet.
Depends on D123255
Updated•3 years ago
|
Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fddd1f768e10 [network markers] Support channel cancelation r=valentin,gerald,necko-reviewers https://hg.mozilla.org/integration/autoland/rev/d5983e247212 [network markers] Support channel cancelation in service workers too r=necko-reviewers,kershaw https://hg.mozilla.org/integration/autoland/rev/8e4d2f5bcea1 [network markers] Bump the profile version to 24 r=gerald https://hg.mozilla.org/integration/autoland/rev/348a3786a29a [network markers] Move the START marker slightly later so that we don't add it for canceled requests r=necko-reviewers,dragana
Comment 8•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fddd1f768e10
https://hg.mozilla.org/mozilla-central/rev/d5983e247212
https://hg.mozilla.org/mozilla-central/rev/8e4d2f5bcea1
https://hg.mozilla.org/mozilla-central/rev/348a3786a29a
Description
•