Closed Bug 1650336 Opened 5 years ago Closed 5 years ago

Performance marker for webconsole add messages should have a unique label per webconsole UI

Categories

(DevTools :: Console, task, P3)

task

Tracking

(firefox80 fixed)

RESOLVED FIXED
Firefox 80
Tracking Status
firefox80 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(1 file)

The webconsole add messages profile markers are currently all labeled WebConsoleAddMessages. If you have several webconsole UIs reacting to the same messages, the markers will show up "twice" because both UIs will record markers in the parent process.

This typically happens if you have a content toolbox and a BrowserConsole opened simultaneously. Note that this won't happen with a MBT, because the MBT runs in a different Firefox instance.

We could add a suffix to the WebConsoleAddMessages to make it unique per webconsole UI.

I guess we could use toolbox.sessionId ( and -1 for the browser console), like we do for telemetry events

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Profile example with the telemetry session id: https://share.firefox.dev/3gH8APM
(would be great to have title set on the profiler UI)

An issue with the current approach is that labels are a bit too big for the marker chart sidebar in the profiler UI.
An issue was filed to address this at https://github.com/firefox-devtools/profiler/issues/2638

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/26c285b17a81 Add the session id to the WebconsoleAddMessages marker label r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: