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]

How to know how much time each line consume in g++?


I am a Newbie of GNU C++. My platform is RedHat Linux
7.0. 
I recently got a program written in GNU C++. It is
rather complex and very time consuming. I want to know
what lines consumes most machine time. For GNU C, gcc
-pg will enable the program to generate running
profile. It seems that g++ doesn't have such function.
Does there exist some program equal to Turbo Profile
under MS-DOS in Linux Platform?Does it mean that I
must change some source code of g++ compiler to meet
my needs? 
Sincerely,
Cheng Gong
P.R. China



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/


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