Closed Bug 2016666 Opened 4 months ago Closed 3 months ago

Always serialize the source table even when the JS sources feature is not enabled

Categories

(Core :: Gecko Profiler, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: canova, Assigned: canova)

References

Details

(Whiteboard: [fp])

Attachments

(3 files)

Currently the source table is serialized only when the "JS Sources" feature is enabled. This is because we didn't need the source table before other than to see the JS sources themselves.

But I would like to add sourceMapURL to the source table which will allow us to:

  1. Find the real function and file names (similar to the "symbolication" process)
  2. Show the source mapped / prettified JS source in the source view.

"JS Sources" feature is necessary for the second task, but it's not necessary for the first one. We should still be able to see the source mapped function names even if the JS source is not present. That's why we should always serialize the source table.

This will also allow us to show better error messages in the frontend source view. See the discussion here.

Blocks: 2016667
Attachment #9544952 - Attachment description: WIP: Bug 2016666 - Always serialize the source table even when the JS sources feature is not set r?mstange!,dcarver → Bug 2016666 - Always serialize the source table even when the JS sources feature is not set r?mstange,dcarver
Attachment #9544953 - Attachment description: WIP: Bug 2016666 - Add a test to make sure that source table is always serialized r?mstange,dcarver → Bug 2016666 - Add a test to make sure that source table is always serialized r?mstange,dcarver
Pushed by canaltinova@gmail.com: https://github.com/mozilla-firefox/firefox/commit/009aabfee2ff https://hg.mozilla.org/integration/autoland/rev/848bbf7e1329 Always serialize the source table even when the JS sources feature is not set r=dcarver,profiler-reviewers https://github.com/mozilla-firefox/firefox/commit/32d60c13222c https://hg.mozilla.org/integration/autoland/rev/332d10898cc7 Add a test to make sure that source table is always serialized r=dcarver,profiler-reviewers
Attachment #9547567 - Attachment description: WIP: Bug 2016666 - Fix the typo in the test → Bug 2016666 - Fix the typo in the test
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: