[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: [LI] function/instruction taking more time??



that's what profiling is exactly for. 'gprof' is meant for this purpose.
while compiling your code with gcc, you specify some option (-g, i think,
but i'm not sure. you can do a 'man gcc'). this generates a file called
gmon.out. then you run 'gprof' and you can get a profile of your program.
but still i'm not sure if you can get the exact time info.

vikram

-----Original Message-----
From: Guruprasad, Mahendrakar V (IE10)
[mailto:GuruprasadM@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, October 04, 1999 12:09 PM
To: Linux User Group
Subject: [LI] function/instruction taking more time??


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.