From owner-freebsd-questions Mon Jul 31 5:31:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 2102D37B62F for ; Mon, 31 Jul 2000 05:31:27 -0700 (PDT) (envelope-from mikko@dynas.se) Received: (qmail 4582 invoked from network); 31 Jul 2000 12:31:24 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 31 Jul 2000 12:31:24 -0000 Received: (qmail 2299 invoked from network); 31 Jul 2000 12:31:37 -0000 Received: from m2.dynas.se (172.16.1.168) by spirit.dynas.se with SMTP; 31 Jul 2000 12:31:37 -0000 Received: (from mikko@localhost) by m2.dynas.se (8.9.3/8.9.3) id OAA45213; Mon, 31 Jul 2000 14:32:11 +0200 (CEST) (envelope-from mikko) Date: Mon, 31 Jul 2000 14:32:11 +0200 (CEST) From: Mikko Tyolajarvi Message-Id: <200007311232.OAA45213@m2.dynas.se> To: bjorn@tornqvist.net Cc: freebsd-questions@freebsd.org Subject: Re: Howto profile my code? Newsgroups: local.freebsd-hackers References: <39855E20.37377FF5@tornqvist.net> X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In local.freebsd-hackers Bjorn Tornqvist wrote: >Anyone know a working method to get profiling to work? (i.e. seeing >something like "method a::getValue() spent 12s Usertime, 3s Kerneltime" >etc). Dunno about C++, but with plain 'ol C I would use "cc -pg" and "gprof". Requires profiling libraries to be installed (/usr/lib/lib*_p.a), i.e. the "proflibs" distribution. This probably belongs to -questions. $.02, /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message