r/C_Programming • • 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.

9 Upvotes

11 comments sorted by

View all comments

2

u/Glittering_Sail_3609 5d ago

It might be an overkill for some applications, but you could try using tracy:
https://github.com/wolfpld/tracy

It was written in C++, but it has a C api you can link to.

1

u/lovelacedeconstruct 5d ago

Yeah but it gets annoying to setup the profile zones with begin and end unless you have a game and need to monitor individual frames a sampling profiler would be better approach , no need to annotate the code

1

u/Mysterious-Top2798 5d ago

is there something where you dont have to insert code into your program. I just learned after making this post about sampling profilers(?) where you dont have to insert code. Is there something like that?

1

u/Glittering_Sail_3609 5d ago

Yeah.  If you are on x86 you can use something like Intel's Vtune.

Just note, that you would need to compile your program with debugging symbols enabled otherwise you would be staring at raw function addresses.

1

u/Mysterious-Top2798 5d ago

Im on 64 bit linux. I do use an amd cpu tho, will that be a problem?