From owner-freebsd-hackers Sun Dec 12 23:31:55 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 07F8E14D07 for ; Sun, 12 Dec 1999 23:31:54 -0800 (PST) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id AAA16038; Mon, 13 Dec 1999 00:02:08 -0800 (PST) Date: Mon, 13 Dec 1999 00:02:08 -0800 (PST) From: Alfred Perlstein To: Julian Elischer Cc: Chris Costello , Ilia Chipitsine , hackers@FreeBSD.ORG Subject: Re: technical info needed In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 12 Dec 1999, Julian Elischer wrote: > 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'. > > > > > > You can compile the kernel with -p -g and use the profiling. > Julian's way is the best however a quick 'n dirty would be just to create a sysctl node for your counter, useful if you only have a couple of things you want to track. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message