From owner-freebsd-hackers Sun Aug 12 5: 9:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 8149737B403 for ; Sun, 12 Aug 2001 05:09:33 -0700 (PDT) (envelope-from ticso@mail.cicely.de) Received: from mail.cicely.de (cicely20 [10.1.1.22]) by srv1.cosmo-project.de (8.11.0/8.11.0) with ESMTP id f7CC9L334003; Sun, 12 Aug 2001 14:09:24 +0200 (CEST) Received: (from ticso@localhost) by mail.cicely.de (8.11.0/8.11.0) id f7CC9PE07448; Sun, 12 Aug 2001 14:09:25 +0200 (CEST) Date: Sun, 12 Aug 2001 14:09:24 +0200 From: Bernd Walter To: Terry Lambert Cc: Bernd Walter , freebsd-hackers@FreeBSD.ORG Subject: Re: Profiling under FreeBSD Message-ID: <20010812140924.B7326@cicely20.cicely.de> References: <20010812111229.A6862@cicely20.cicely.de> <3B764CD4.9F63D071@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B764CD4.9F63D071@mindspring.com>; from tlambert2@mindspring.com on Sun, Aug 12, 2001 at 02:31:00AM -0700 X-Operating-System: NetBSD cicely20.cicely.de 1.5 sparc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Aug 12, 2001 at 02:31:00AM -0700, Terry Lambert wrote: > Bernd Walter wrote: > > Can anyone give me a short intro about how to profile a C/C++ programm > > under FreeBSD? > > Pointers to URLs and Books are also welcome. > > Use "CFLAGS=-pg", and make sure the program terminates normally; > also "man gprof". I already found -pg and gprof but made the error to stop the program with CTRL-C. Obviously I never get the profile this way... Thank you. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message