Description
I'm just running cargo-flamegraph flamegraph
letting my application run for 10 seconds and closing the application.
At the end I see
[ perf record: Woken up 518 times to write data ]
[ perf record: Captured and wrote 132.523 MB perf.data (16443 samples) ]
Maybe that's a lot but I'm using default settings so IDK.
Now it's just constantly running a single addr2line and then respawning a new one...
codedcosmos@codedcosmos-UBUNTU:~$ pstree -p 40304
cargo-flamegrap(40304)───perf(41559)───sh(43099)───addr2line(43100)
codedcosmos@codedcosmos-UBUNTU:~$ pstree -p 40304
cargo-flamegrap(40304)───perf(41559)───sh(43501)───addr2line(43502)
codedcosmos@codedcosmos-UBUNTU:~$ pstree -p 40304
cargo-flamegrap(40304)───perf(41559)───sh(44021)───addr2line(44022)
codedcosmos@codedcosmos-UBUNTU:~$
These are taken several minutes apart.. So I'm kinda getting bottle-necked by this single-threaded addr2line process.
I ran it 40 minutes ago and it's still stuck on that perf record captured and wrote line. I can press Ctrl+C and it will generate an SVG but they are pretty clearly not accurate and they have a lot of [unknown] sections.
It's a vulkan based game engine, so maybe the raw amount of complexity is causing this issue. Cause calling vulkan methods will often call quite complicated driver functions and the stack traces can sometimes get funky.
Also I'm using a Ryzen 9 5950x and I have 32 Gigs of ram, and I only have SSDs.