develooper Front page | perl.perl5.porters | Postings from December 2011

[perl #36795] Dprof/dprofpp reports incorrect subroutine call count if #Calls > 999999

Thread Previous
From:
James E Keenan via RT
Date:
December 3, 2011 20:34
Subject:
[perl #36795] Dprof/dprofpp reports incorrect subroutine call count if #Calls > 999999
Message ID:
rt-3.6.HEAD-5084-1322973272-1047.36795-15-0@perl.org
On Wed Aug 03 13:36:01 2005, wfischer@lanl.gov wrote:

> Dprof/dprofpp reports incorrect subroutine call count if calls > 999999
> (possibly the problem is in dprofpp)
> 
> In this version of Dprof/dprofpp, the #Calls field is apparently  
> limited to
> 6 characters: values >= 10**6 are truncated (keeping the left-most 6  
> digits only).
> 
> For example, the following one-liner calls a no-op subroutine 1,234,567  
> times,
> but only 123,456 calls are reported:
> 

Problem confirmed.  Can we assume that setting an upper bound to the
number of calls is necessary and prudent?  If so, what would be more
rational behavior?  Running 999,999 calls and then issuing a warning? 
Are there other versions of dprofpp which behave differently/better?

Thank you very much.
Jim Keenan


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About