Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-17-2008, 05:15 AM   #1
Registered: Oct 2008
Location: Yellagiri Hills
Distribution: Fedora
Posts: 87

Rep: Reputation: 15
What are the Tools used for Testing the performance of C and C++ programs under linux

Dear all,

I would like to know the Tools which are used for Testing the performance of C and C++ programs under linux?

Thanks in advance
Old 11-17-2008, 06:07 AM   #2
Senior Member
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
also search for linux profiler.
Old 11-17-2008, 08:23 AM   #3
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
I have heard good things about gprof, but never used it.

Valgrind has a pretty good code analysis tool suite. Also, there is program that KDE makes called KCachegrind that is GUI front end for the Valgrind tool suite. I liked it a lot. I was able to pinpoint where the program was spending the most time in my code.

I think profiler's are great! It's funny how many kids in college would spend hours trying to make a section of code that took up a small part of the runtime more efficient. Meanwhile, KCachegrind allowed me to see which parts dominated actual run-time and then work on that part of the code (often inside a loop).
Old 11-17-2008, 11:50 PM   #4
Registered: Oct 2008
Location: Yellagiri Hills
Distribution: Fedora
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you very much.
Old 11-18-2008, 02:51 PM   #5
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
I use the "time" command to check the total performance of the program. In particular, I like tracking what effect the optimizer has on my runtime.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stress testing tools Risc91 AIX 7 10-10-2012 01:36 PM
testing iptables performance testing pavan.daemon Linux - Networking 2 09-28-2007 05:22 PM
Testing the kernel performance gangaraju Fedora 4 03-06-2006 01:17 AM
Alternatives of testing tools of windows abhis_mail2002 Fedora 3 01-16-2006 06:29 AM
Samba Performance Testing (an Observation) soopafresh Linux - Networking 0 08-12-2004 03:01 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration