From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] kprof From: "rob pike, esq." MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sun, 21 Apr 2002 12:53:03 -0400 Topicbox-Message-UUID: 794a23b4-eaca-11e9-9e20-41e7f4b1d025 _kproftimer is called from the clock routine. You're proposing the gprof approach, where you notice 12% of the time is spent in a routine, which is called in 3 places, so each place gets charged 4%. Chances are against you that this way of accounting will give you the correct answer. -rob