www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/02/14:35:23

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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019