Hi,

You can use the -pg option while compiling for the purpose.
then run the program you get a file called gmon.out. 
now gprof gmon.out will show what you would like to see.
man gprof will give you sufficient details.

sudheer
 

On Mon, 4 Oct 1999, Guruprasad, Mahendrakar  V (IE10) wrote:

> Hi,
>       Is there anyway to find out which function/instruction is consuming
> more time?
>       If yes , how much time (Millisec/microsec) its taking?? 
> regards
> 
> GURUPRASAD V.M.
> Honeywell India Software Operations
> 
> 
> 
> 
> --------------------------------------------------------------------
> For more information on Linux in India visit http://www.linux-india.org/
> The Linux India mailing list does not accept postings in HTML format.
> 

--------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

Reply via email to