From: "Alberto Chessa" Newsgroups: comp.os.msdos.djgpp Subject: Re: Profiling, how? Date: 18 May 1998 07:26:24 GMT Organization: FIAR S.p.A. Lines: 18 Message-ID: <01bd822e$7f701400$92c809c0@chessa> References: <0667c3714041258PROXY AT sion DOT net> NNTP-Posting-Host: milano18-30.tin.it To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Inkel AT sion DOT com wrote in article <0667c3714041258PROXY AT sion DOT net>... > Hi everybody > Could somebody explain me how can I do to profile a program? (yeah, I > know, with the -pg command line switch). My exactly question is: > > * I write a program, > * Compile it with the -pg option, > * I run the program, > * Then, how, when, why? > The programm execution should produce a gmon.out file. Use command "gprof" to examine the results (note that gprof required a.out - exec "gprof -h" for more info).