Closed Bug 1964113 Opened 12 days ago Closed 9 days ago

Remove unused LUL code from the base profiler

Categories

(Core :: Gecko Profiler, task)

task

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: mstange, Assigned: canova)

Details

Attachments

(1 file)

The base profiler, which is used when profiling the very start of Firefox startup, i.e. before libxul has finished loading, ships its own copy of LUL on Linux + Android. However, this copy is currently not used!

In fact, we don't even do frame-pointer based stack walking in the base profiler on Linux. Native stackwalking support was disabled entirely for the base profiler on Linux in bug 1658232 in this patch:
https://phabricator.services.mozilla.com/D86506

I think we should just remove the unused code. And independently we can make the base profiler use frame pointers to unwind native stacks.

But it seems that people don't need a working base profiler on Linux anyway, or someone would have complained about missing stacks before. The base profiler was primarily added for Windows, where Firefox would sometimes run injected code from third parties before it started loading xul.dll.

Assignee: nobody → canaltinova
Status: NEW → ASSIGNED

Good news, it looks like the unused code didn't actually make it into the binary.
Size profile of Linux x64 firefox-bin: https://share.firefox.dev/4jG0BUh

Pushed by canaltinova@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c792971da78e Remove LUL from the baseprofiler r=mstange,profiler-reviewers
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: