profiler
samply
profiler | samply | |
---|---|---|
184 | 8 | |
1,113 | 1,808 | |
2.6% | - | |
9.6 | 9.4 | |
6 days ago | 7 days ago | |
JavaScript | Rust | |
Mozilla Public License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
profiler
-
Long running tab (kiosk), 100% CPU
Probably your best bet is to use the Firefox Profiler once it starts hogging the CPU to try to see what it's doing. I'd be happy to take a look at the result although I don't have a lot of experience at diagnosing performance problems; hopefully the profile will make it obvious what's going on.
-
Slow Firefox Startup
I tried using the https://profiler.firefox.com/ and running with:
- Firefox Profiler
-
Definite tab bug affecting both Win/Linux intermittently
You can try to reproduce while taking a profile using the Firefox profiler, then share it in the #perf:mozilla.org room on Mozilla's Matrix instance.
-
Why does Firefox run slow
Run a profiling session for ~30 sec when you notice something is running slower than you expect, see https://profiler.firefox.com/. Share results here if you want help interpreting them.
-
Problems with Firefox non snap versions on Ubuntu 22.04?
Next time, send a SIGABRT to the main process (kill -6 $(pidof firefox)) and use the resulting backtrace (you will find a link to the crash report in about:crashes) to file a bug. A performance profile could be useful, but you'll need to know first what to capture. This seems like a graphics issue, so try the Graphics preset. Share a link to your report.
-
Dear Firefox, why are you so terrible at rendering Flutter web apps? It's like potato quality.
https://profiler.firefox.com will be useful if you can capture and share it to developers.
-
Webpages not loading or taking forever to load
If you can reproduce it in safe mode and a clean profile, capture a performance profile using the clean profile while trying to load a problematic webpage, don't remove any information from it, and share it here (although it's typically not easy for users to analyse them), or file a bug with it attached.
-
Firefox hangs on Facebook page
Next time, capture a performance profile using the Graphics preset, and kill the browser by entering kill -6 $(pidof firefox) in a shell. This will create a bug report (unless debian disables the crash reporter) that would indicate where Firefox is stuck at. You might need to use an official build to get useful results.
- AV1 Lagging Like Mad
samply
- Samply: Command-line sampling profiler for macOS and Linux
- samply: Command line CPU profiler which uses the Firefox profiler as its UI
-
Help with Rust Program performance
Regarding profilers, I really like samply. It doesn't require to modify source code, runs on Linux and macOS and automatically loads profiling data into Firefox Profiler UI.
-
AI learns to play flappy bird (code in comments)
I grabbed a quick profile using samply and noticed two things: Even in fast mode, the simulation only updates when the screen is redrawn, so its update frequency is limited by the refresh rate. And the simulation seems to mostly be bottle-necked by Vec reallocation, so re-using Vecs might help.
-
Firefox Profiler
I ran across this when I found samply [0], a CLI sampling profiler. On samply's GitHub there's a link to a sample profile that opens in the Firefox Profiler and I was in awe at just how fast it is! Try dragging your mouse over the timeline for a second: https://share.firefox.dev/3j3PJoK
0: https://github.com/mstange/samply
-
Frame pointers vs. DWARF – my verdict
IMHO, perf's decision to write whole stacks directly to the disk and unwinding them as a post-process is a really bad design. It wastes disk space, and as the author pointed out, it also has a lot of IO overhead.
As an alternative approach, https://github.com/mstange/samply processes data streamed from perf and unwinds it in realtime. The unwinding overhead is surprisingly low: it only takes around 1% of (single) CPU per CPU profiled. Solving the disk waste alone has been a tremendous improvement of profiling experience. As a bonus, the unwinding and symbolization works reliably while I frequently had postprocessing not terminating when using the perf CLI directly.
-
Data-driven performance optimization with Rust and Miri
samply supports showing inline frames in call stacks. I find this makes a huge difference when profiling Rust.
- Samply: A work in progress of a command-line profiler for macOS and Linux
What are some alternatives?
xkeysnail - Yet another keyboard remapping tool for X environment
pprof-rs - A Rust CPU profiler implemented with the help of backtrace-rs
old-reddit-redirect - Ensure Reddit always loads the old design
rust-flappy-bird-ai - AI learns to play flappy bird using neuro-evolution, implemented in Rust using macroquad
rust-threadpool - A very simple thread pool for parallel task execution
flamegraph - Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
OpenH264 - Open Source H.264 Codec
parca-agent - eBPF based always-on profiler auto-discovering targets in Kubernetes and systemd, zero code changes or restarts needed!
wolvic - A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
rayon - Rayon: A data parallelism library for Rust
heaptrack - A heap memory profiler for Linux
perfmon