Open Bug 1919845 Opened 2 months ago Updated 18 hours ago

Add the ability to annotate flows between markers

Categories

(Core :: Gecko Profiler, enhancement)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

(Depends on 1 open bug, )

Details

Attachments

(1 file)

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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: