Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 1999 23:44:57 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Chris Costello <chris@calldei.com>, Ilia Chipitsine <ilia@cgilh.chel.su>, hackers@FreeBSD.ORG
Subject:   Re: technical info needed
Message-ID:  <Pine.BSF.4.10.9912122344200.26823-100000@current1.whistle.com>
In-Reply-To: <Pine.BSF.4.21.9912130000500.4557-100000@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 13 Dec 1999, Alfred Perlstein wrote:

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



Actually from memory you can compile just the files in question

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912122344200.26823-100000>