Review your favorite Linux distribution.
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 04-26-2002, 04:55 PM   #1
LQ Newbie
Registered: Apr 2002
Location: Los Angeles
Distribution: Red Hat 7.0 & 7.2
Posts: 4

Rep: Reputation: 0
setting gprof sampling time?

I'm trying to profile some code on Red Hat 7.2 using "gprof". I am able to successfully profile, but the sampling time is pretty coarse. Is there anyway to change this? I have been able to use the "gprof -s" option to concatenate results from several runs, but it takes too long to get good statistics from this.

are there any other good profiling tools?

Why is the sampling even necessary? i would assume that compiling with "gcc -pg" would allow gcc to instrument every function call so that sampling would not be necessary.

thanks for any help



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
now sampling 'Santa Fe'. STILL no internet useing wireless adapter! randell6564 Linux - Wireless Networking 1 11-28-2005 08:08 AM
gprof problem bogdanpa Programming 2 09-19-2005 09:26 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 04:25 PM
Is there a gprof for C++? jhirshon Programming 2 04-29-2004 07:35 PM
audio sampling Skews! microtim Programming 2 06-23-2003 07:45 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:13 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