From owner-freebsd-hackers Sun Dec 12 22:35:17 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from luna.lyris.net (luna.shelby.com [207.90.155.6]) by hub.freebsd.org (Postfix) with ESMTP id C28CF14EE7 for ; Sun, 12 Dec 1999 22:35:15 -0800 (PST) (envelope-from kip@lyris.com) Received: from luna.shelby.com by luna.lyris.net (8.9.1b+Sun/SMI-SVR4) id WAA19989; Sun, 12 Dec 1999 22:34:44 -0800 (PST) Received: from (luna.shelby.com [207.90.155.6]) by luna.shelby.com with SMTP (MailShield v1.50); Sun, 12 Dec 1999 22:34:44 -0800 Date: Sun, 12 Dec 1999 22:34:44 -0800 (PST) From: Kip Macy To: Chris Costello Cc: Ilia Chipitsine , hackers@FreeBSD.ORG Subject: Re: technical info needed In-Reply-To: <19991213000556.B868@holly.calldei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SMTP-HELO: luna X-SMTP-MAIL-FROM: kip@lyris.com X-SMTP-RCPT-TO: chris@calldei.com,ilia@cgilh.chel.su,hackers@FreeBSD.ORG X-SMTP-PEER-INFO: luna.shelby.com [207.90.155.6] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems like using gprof would be a little bit more useful than potentially having something print to the screen 50k times. I guess printf would be fine if you only care if something is called a lot or not at all. -Kip On Mon, 13 Dec 1999, Chris Costello wrote: > On Mon, Dec 13, 1999, Ilia Chipitsine wrote: > > Is it called once an year or 500000 times a second ? > > Is there a way how can I determine it by myself ? > > Add a statement like > > printf("somefunc() being called!\n"); > > to the top of the function you want to 'measure'. > > -- > |Chris Costello > |Nobody has ever, ever, EVER learned all of WordPerfect. > `------------------------------------------------------- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message