LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-16-2004, 05:01 AM   #1
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
benchmarking my code


Is there a good program that will test my code for the most executed bits? I want to do some optimisation but I'd like to find out which parts of the program are slowing it down the most so I can concentrate on those parts.
TIA
 
Old 09-16-2004, 05:44 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I assume you're using gcc/g++, in which case you may want to look at gprof, which is a part of the gcc package I think. You'll need to compile your binaries with profiling support (see the gcc/g++/gprof manpages).

If you do a search for gprof on www.freshmeat.net, you'll see several graphical front-ends to help you analyse the results.
 
Old 09-16-2004, 06:01 AM   #3
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Original Poster
Rep: Reputation: 30
That seems to be what I'm looking for. Thanks a lot!
 
  


Reply



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
Benchmarking goldfish_memory Linux - General 1 11-18-2005 12:45 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
Benchmarking an application JAllegraud Programming 2 11-04-2004 09:24 AM
benchmarking softwareI Moebius Linux - Software 4 01-26-2004 07:14 AM
Stress benchmarking linear Linux - General 0 01-13-2002 01:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration