From: j DOT aldrich6 AT genie DOT com Message-Id: <199606021815.AA222379313@relay1.geis.com> Date: Sun, 2 Jun 96 18:26:00 UTC 0000 To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: Trouble profiling programs Reply to message 7401392 from OWEN AT GEMEMAIL on 06/01/96 4:35AM >I have tried to use gprof to profile programs like it says in the FAQ, >but every time I run it it says gmon.out no such file or directory You must compile _and_ link with -pg. The resulting program will run about 5 times slower and output a file called 'gmon.out' in the same directory as the program itself. Then run gprof. Remember, you have to link with -pg too, or it won't do any good! John