This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: where my program spends time?


Gprof may help.

http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html

Bill
Anna Sidera wrote:

> Hello,
> 
> I wrote a simulation program in gcc that takes 12 hours to finish and I want to make it 
faster. Can you tell me any way to find what proportion of the time is spend in each line of 
the program? (like profile in matlab)
> 
> Thanks,
> Anna
> 
> 

________________________________________________________________
Please visit a saintly hero:
http://www.jakemoore.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]