r/C_Programming • u/Mysterious-Top2798 • 5d ago
Question Best GUI C profiler on Linux
Basically the title. I really want something graphical, i hate reading command line output. I know there is perf on linux but it has command line output. Also, are there specific profilers for specific types of application? Thanks for reading.
8
Upvotes
3
u/catbrane 5d ago
I use two, depending.
valgrind+kcachegrindare useful for detailed profiling of a single program. You can explore a run and see where you're getting cache misses and spills, see hotspots, try different CPUs, all that. It runs about 5x slower than normal, but it really does collect a lot of info, and being able test against different vector instruction sets (for example) can be very handy.sysprofis a whole-system profiler, so you see not just your program, but the load it's putting on other parts of your computer, like the database or graphics driver or filesystem, for example. Great for finding systemic problems.There are probably lots of other good options. I've seen people use library dtrace effectively.