C++ Profiling tool for Linux that works with gcc binaries

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Do you guys know of any good profiling tools that work with C++ binaries built with gcc that runs on RedHat 7.2?

I'll take anything that works but the more detailed the better, i would like to be able to call out %time spent in every function including external libraryt calls.

Thanks in advance!

-Ameesh
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
umm i would really like one that has a gui, i dont want to wade through MBs of text file output to figure out what part of the code is slow.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
umm I don't even code C or C++ so I named the only one I knew off the top of my head.

ccmalloc - A memory profiler/debugger
memprof - memory profiler and leak detector
kcachegrind - KDE Profiling Visualisation Tool
kprof - a KDE3 visual tool to help analyze profiling results

That's what some searching turned up, but I've never used any of them.
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Ameesh
Originally posted by: CTho9305
gprof is the only one I know of. if you want a debugging environment that doesn't suck (in my opinion), use visual C++ on windows. unfortunately, all my CS classes use *nix. google (http://www.google.com/search?q=gprof+frontend&hl=en&lr=&ie=UTF-8&oe=utf-8&safe=off&start=10&sa=N) says kprof is a gui frontend to gprof... give that a try?

Is Visual C++ any good? everyone says open source has the best software but im not sure.

What kind of question is that? Visual C++ kicks the $hit out of every opensource compiler/debugger I've seen. It's fast, and presents information very well. I've found that most of the OSS fanatics haven't actually used Visual Studio, and just like to think that gdb must be better because it's open source.
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: CTho9305
Originally posted by: Ameesh
Originally posted by: CTho9305
gprof is the only one I know of. if you want a debugging environment that doesn't suck (in my opinion), use visual C++ on windows. unfortunately, all my CS classes use *nix. google (http://www.google.com/search?q=gprof+frontend&hl=en&lr=&ie=UTF-8&oe=utf-8&safe=off&start=10&sa=N) says kprof is a gui frontend to gprof... give that a try?

Is Visual C++ any good? everyone says open source has the best software but im not sure.

What kind of question is that? Visual C++ kicks the $hit out of every opensource compiler/debugger I've seen. It's fast, and presents information very well. I've found that most of the OSS fanatics haven't actually used Visual Studio, and just like to think that gdb must be better because it's open source.

:) lol i completely agree with you :) I actually worked on the Visual C++ team for a short stint
 

zephyrprime

Diamond Member
Feb 18, 2001
7,512
2
81
But Visual C doesn't come with a profiler anymore.

Try Intel's VTune. I think there's a linux version of it. You might have to use the Intel C compiler also but that's no big deal since it's free for non commercial use in linux.