firefox-devtools / profiler

Firefox Profiler — Web app for Firefox performance analysis
https://profiler.firefox.com
Mozilla Public License 2.0
1.17k stars 383 forks source link

Export network requests as HAR #5051

Open bgrins opened 2 months ago

bgrins commented 2 months ago

I'd like to be able to get the requests in the HAR format. Either a button to download from the network panel (example https://share.firefox.dev/4eEUs8H), or some kind of URL convention where tacking .har onto the end of a share link loads the JSON for the active thread instead of rendering the profiler UI (example https://share.firefox.dev/4eEUs8H.har)

mstange commented 2 months ago

Could you give a few more details about your use case?

bgrins commented 2 months ago

My primary usecase was to allow inspecting headers in the devtools UI for an existing profile (it's also definitely easier to share a profile than a HAR), although after we chatted briefly I realize we don't have the headers in the profile in the first place so this is maybe less interesting for my specific usecase.

bgrins commented 2 months ago

If had a mode where the profile was able to store more expansive data about the network requests (for example, in a profile generated by CI), it may also be valuable to export enough detail to be able to "replay" the page load using a proxy for further debugging & testing.

Melyzor commented 2 months ago

not****