Easily serve linux perf profile for firefox profiler.
Just run python3 -m perf_serve
in directory containing perf.data. That will run perf script
and start serving resulting file on some free port. See python3 -m perf_serve --help
for more usage information.
Due to firefox-devtools/profiler#3766 it is currently impossible to load perf profiles from URL. While this issue is not fixed, perf-serve will default to using profiler.forestryks.org, which is just hot-fixed version of firefox profiler
python3 -m pip install perf_serve
Because perf_serve serves a file via http, you need to set Insecure content = Allow
in site options for profiler.forestryks.org.