Closed Bug 1919845 Opened 6 months ago Closed 4 months ago

Add the ability to annotate flows between markers

Categories

(Core :: Gecko Profiler, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Perfetto (flow_ids) and ETW (activityID)(docs) both have support for this kind of thing.

I believe adding these annotations and exposing them in the UI would be valuable for better understanding what's happening in profiles and help when comparing to Chrome.

Assignee: nobody → jmuizelaar
Attachment #9425932 - Attachment description: Bug 1919845. Add Flow → Bug 1919845. WIP Add Flow
Status: NEW → ASSIGNED

Here's an an example profile that has some flows for image decoding: https://share.firefox.dev/3Uky4su

Duplicate of this bug: 1661114

Since the meaning of a flow ID depends on the marker's timestamp, I worry that we might get into trouble when we use flow IDs with "backdated" markers. We'll need to say something like this somewhere: "When using Flow IDs generated from a pointer, make sure this pointer was valid at the time of the marker timestamp". It may be tricky for the implementation to enforce this.

For interval markers, is the flow ID associated with the start timestamp or the end timestamp of the marker? I can think of ways to cause trouble with either choice.
I don't have a suggestion for a solution. Maybe we can pick the start timestamp for now and see how much trouble we run into.

Attachment #9425932 - Attachment description: Bug 1919845. WIP Add Flow → Bug 1919845. Add support flows in markers
Depends on: 1929913

With this applied I can trace through a lot of the runnables and can follow an HTTP request from the child to the parent and then back to the child right up to the HTML parser.

See Also: → 1923143
Attachment #9425932 - Attachment description: Bug 1919845. Add support flows in markers → Bug 1919845. Add support for flows in markers
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c66abe82166e Add support for flows in markers r=profiler-reviewers,mstange
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Blocks: 1933333
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: