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

Extract networking logs from profile to Logan (log analyzer) #5088

Open acreskeyMoz opened 3 weeks ago

acreskeyMoz commented 3 weeks ago

An idea that Kershaw proposed at Mozweek 2024:

A button to extract the networking logs (nsHttp, etc) from a profile (make with profilermarkers) and open them in the Necko tool, Logan (Log Analyzer)

The logan server can be found at: https://mozilla-necko.github.io/logan/

Logs in particular that would extracted:

nsHttp:5,cache2:5,DocumentLeak:5,PresShell:5,DocLoader:5,nsDocShellLeak:5,RequestContext:5,LoadGroup:5,nsSocketTransport:5

Documentation: https://github.com/mayhemer/logan#readme

julienw commented 2 weeks ago

I started something in https://github.com/firefox-devtools/profiler/pull/4973 but never got to finish it. I should come back at it...

mstange commented 4 days ago

Here's an example profile for testing: https://share.firefox.dev/3AUn2mZ I captured a page load of mozilla.org after using about:logging to start profiling with the Networking logging preset.

Here's another profile for testing: https://share.firefox.dev/3MEvMjO This one has all the loggers enabled that are listed in Andrew's initial comment.