LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-17-2008, 05:15 AM   #1
maradnus
Member
 
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
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

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

Rep: Reputation: 31
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
maradnus
Member
 
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
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 110Reputation: 110
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.
 
  


Reply


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


All times are GMT -5. The time now is 09:51 PM.

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