Closed Bug 1715321 Opened 3 years ago Closed 3 years ago

Report the type of redirection in network markers

Categories

(Core :: Gecko Profiler, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: julienw, Assigned: julienw)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Network markers only capture that we're having a redirection, but not the type of this redirection. The goal of this bug is to report this information.

Now the test will warn when more properties than expected are received.
This way we won't forget to update the tests when we add more, but we
also assert that some properties are absent in some cases, as expected.

This moves optional redirect-related parameters to the end, so that it's
easier to use in non-redirect cases.

Depends on D117679

This commit also implements the changes to the marker streaming operation so
that this information is properly propagated to the frontend.

See https://github.com/firefox-devtools/profiler/pull/3350 for the
Firefox UI part.

Note that in debug builds, the new assertions will crash the browser,
until the following commit that uses this new parameter.

Depends on D117680

Attached image image.png
Attachment #9226882 - Attachment description: WIP: Bug 1715321 - [profiler] Rework the existing test for redirections r=canaltinova → Bug 1715321 - [profiler] Rework the existing test for redirections r=canaltinova
Attachment #9226883 - Attachment description: WIP: Bug 1715321 - [profiler, netwerk] Reorder some parameters of profiler_add_network_marker r=gerald → Bug 1715321 - [profiler, netwerk] Reorder some parameters of profiler_add_network_marker r=gerald
Attachment #9226884 - Attachment description: WIP: Bug 1715321 - [profiler] Add a parameter to profiler_add_network_marker to capture the type of redirect r=gerald → Bug 1715321 - [profiler] Add a parameter to profiler_add_network_marker to capture the type of redirect r=gerald
Attachment #9226885 - Attachment description: WIP: Bug 1715321 - [profiler, netwerk] Report the type of redirection in network markers r=gerald → Bug 1715321 - [profiler, netwerk] Report the type of redirection in network markers r=gerald
Severity: -- → N/A
Priority: -- → P2
Pushed by jwajsberg@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4da49f9d6f57
[profiler] Rework the existing test for redirections r=canaltinova
Pushed by jwajsberg@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/99512dadb64b
[profiler, netwerk] Reorder some parameters of profiler_add_network_marker r=necko-reviewers,gerald,valentin
https://hg.mozilla.org/integration/autoland/rev/251fe72f6cc2
[profiler] Add a parameter to profiler_add_network_marker to capture the type of redirect r=gerald
https://hg.mozilla.org/integration/autoland/rev/93f02f09ce30
[profiler, netwerk] Report the type of redirection in network markers r=necko-reviewers,gerald,valentin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: