add some Layout Debugger features to help with command line scripting
Categories
(Core :: Layout, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(3 files)
Sometimes I want to load a document in the layout debugger then quit once it has loaded, e.g. if I want to run it under perf
while measuring page load, or if I've added some manual logging or measurement that would get output while the page loads.
Sometimes I want to capture a Gecko Profiler profile of these page loads too, which isn't possible at all with the layout debugger.
This bug is for adding some command line arguments to make that easier.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Hi Julien. I'm trying add functionality to the Layout Debugger to collect a Gecko Profiler profile and save it to a file. I have the basic Services.profiler.StartProfiler()
/ Services.profiler.dumpProfileToFile()
calls working, but when I load that file in profiler.firefox.com, I don't get any symbols. Is there anything I can call into to make that saved profile be able to get symbols when I load it? Thanks!
Comment 5•5 years ago
|
||
Hey Cameron,
Currently we try to symbolicate unsymbolicated profiles at load time, but this uses the symbol server, and so the symbols needs to be uploaded there.
I'm not super comfortable about the process to do that. Markus probably knows more.
Comment 6•5 years ago
|
||
Symbolicating raw profiles from local builds is something that, after all these years, we still don't have a proper answer for. I usually point people at this python script and apparently some people have had success with, but I haven't run it in years and it's probably not very easy to use.
Assignee | ||
Comment 7•5 years ago
|
||
Gerald pointed me to MOZ_PROFILER_SYMBOLICATE
. Markus, do you know if I were to fix MozDescribeCodeAddress
for Linux, would the current MOZ_PROFILER_SYMBOLICATE
functionality be enough to symbolicate raw profiles? Or are there still other problems in there?
Comment 8•5 years ago
|
||
Oh, I forgot about that one. It might be enough! It won't be particularly fast, but it should do the job.
Assignee | ||
Updated•5 years ago
|
Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8a7e48b3e117 Part 1: Refactor layout debugger command line handling. r=dbaron https://hg.mozilla.org/integration/autoland/rev/38eb64509116 Part 2: Add --autoclose argument to the layout debugger. r=dbaron https://hg.mozilla.org/integration/autoland/rev/a1e72b9b205d Part 3: Add --capture-profile argument to the layout debugger. r=dbaron
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8a7e48b3e117
https://hg.mozilla.org/mozilla-central/rev/38eb64509116
https://hg.mozilla.org/mozilla-central/rev/a1e72b9b205d
Description
•