On Sun, Sep 23, 2001 at 02:13:47AM -0400, Ken Fox wrote:
> Anybody know what the enter/exit scope percentage is?
Naturally, it depends on the code. 10% is a reasonable estimate.
Don't take my word for it. Add this to the top of any program:
use B::Utils;
CHECK {
B::minus_c;
B::Utils::walkallops_simple(sub { $scope++ if $_[0]->name =~/enter|leave/;
$total++; });
print $scope/$total*100;
}
--
"The bad reputation UNIX has gotten is totally undeserved, laid on by people
who don't understand, who have not gotten in there and tried anything."
-- Jim Joyce, former computer science lecturer at the University of California