t/test05.p

filter: Statementstmt 100% 10 / 10 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 93.7% 15 / 16 CC 2 SCAR 3.5
CC
2
Cov
92%
bar
2.0
foo1
1.0
foo2
1.0
CRAP 1.4
« t/test80-recurs.p ↑ Summary blib/lib/Devel/NYTProf.pm »
1 # Test that fastprof doesn't break
2 # &bar; used as &bar(@_);
3  
4 16 ▶sub foo1 {
Subroutine foo1: called CC=1 SCAR=0.0
5 16 print "in foo1(@_)\n";
6 16 bar(@_);
7 }
8 16 ▶sub foo2 {
Subroutine foo2: called CC=1 SCAR=0.0
9 16 print "in foo2(@_)\n";
10 16 &bar;
11 }
12 32 ▶sub bar {
Subroutine bar: called CC=2 SCAR=7.1
13 32 print "in bar(@_)\n";
14 32 ▶ if( @_ > 0 ){
Branch: 1 branch
BranchTrueFalseTotal
if (@_ > 0) 32 0 32
15 32 &yeppers;
16 }
17 }
18 32 ▶sub yeppers {
Subroutine yeppers: called CC=1 SCAR=0.0
19 32 print "rest easy\n";
20 }
21  
22 16 &foo1( A );
23 16 &foo2( B );
« t/test80-recurs.p ↑ Summary blib/lib/Devel/NYTProf.pm »