Filename | /home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Deep/RefType.pm |
Statements | Executed 135 statements in 2.55ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
18 | 1 | 1 | 907µs | 8.28ms | descend | Test::Deep::RefType::
18 | 1 | 1 | 439µs | 439µs | init | Test::Deep::RefType::
1 | 1 | 1 | 90µs | 106µs | BEGIN@1.11 | Test::Deep::
1 | 1 | 1 | 32µs | 59µs | BEGIN@2.12 | Test::Deep::
1 | 1 | 1 | 31µs | 184µs | BEGIN@8 | Test::Deep::RefType::
1 | 1 | 1 | 29µs | 95µs | BEGIN@6 | Test::Deep::RefType::
0 | 0 | 0 | 0s | 0s | renderGot | Test::Deep::RefType::
0 | 0 | 0 | 0s | 0s | render_stack | Test::Deep::RefType::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 113µs | 2 | 121µs | # spent 106µs (90+15) within Test::Deep::BEGIN@1.11 which was called:
# once (90µs+15µs) by Test::Deep::__ANON__[/home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Deep.pm:80] at line 1 # spent 106µs making 1 call to Test::Deep::BEGIN@1.11
# spent 15µs making 1 call to strict::import |
2 | 2 | 130µs | 2 | 87µs | # spent 59µs (32+28) within Test::Deep::BEGIN@2.12 which was called:
# once (32µs+28µs) by Test::Deep::__ANON__[/home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Deep.pm:80] at line 2 # spent 59µs making 1 call to Test::Deep::BEGIN@2.12
# spent 28µs making 1 call to warnings::import |
3 | |||||
4 | package Test::Deep::RefType; | ||||
5 | |||||
6 | 2 | 109µs | 2 | 161µs | # spent 95µs (29+66) within Test::Deep::RefType::BEGIN@6 which was called:
# once (29µs+66µs) by Test::Deep::__ANON__[/home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Deep.pm:80] at line 6 # spent 95µs making 1 call to Test::Deep::RefType::BEGIN@6
# spent 66µs making 1 call to Test::Deep::Cmp::import |
7 | |||||
8 | 2 | 728µs | 2 | 337µs | # spent 184µs (31+153) within Test::Deep::RefType::BEGIN@8 which was called:
# once (31µs+153µs) by Test::Deep::__ANON__[/home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Deep.pm:80] at line 8 # spent 184µs making 1 call to Test::Deep::RefType::BEGIN@8
# spent 153µs making 1 call to Exporter::import |
9 | |||||
10 | sub init | ||||
11 | # spent 439µs within Test::Deep::RefType::init which was called 18 times, avg 24µs/call:
# 18 times (439µs+0s) by Test::Deep::Cmp::new at line 33 of Test/Deep/Cmp.pm, avg 24µs/call | ||||
12 | 18 | 34µs | my $self = shift; | ||
13 | |||||
14 | 18 | 321µs | $self->{val} = shift; | ||
15 | } | ||||
16 | |||||
17 | sub descend | ||||
18 | # spent 8.28ms (907µs+7.37) within Test::Deep::RefType::descend which was called 18 times, avg 460µs/call:
# 18 times (907µs+7.37ms) by Test::Deep::descend at line 328 of Test/Deep.pm, avg 460µs/call | ||||
19 | 18 | 26µs | my $self = shift; | ||
20 | |||||
21 | 18 | 14µs | my $got = shift; | ||
22 | |||||
23 | 18 | 175µs | my $exp = $self->{val}; | ||
24 | 18 | 301µs | 18 | 105µs | my $reftype = reftype($got); # spent 105µs making 18 calls to Scalar::Util::reftype, avg 6µs/call |
25 | |||||
26 | 18 | 591µs | 36 | 3.91ms | return Test::Deep::descend($reftype, Test::Deep::shallow($exp)); # spent 3.91ms making 18 calls to Test::Deep::__ANON__[Test/Deep.pm:80], avg 217µs/call
# spent 3.35ms making 18 calls to Test::Deep::descend, avg 186µs/call, recursion: max depth 3, sum of overlapping time 3.35ms |
27 | } | ||||
28 | |||||
29 | sub render_stack | ||||
30 | { | ||||
31 | my $self = shift; | ||||
32 | my $var = shift; | ||||
33 | |||||
34 | return "reftype($var)"; | ||||
35 | } | ||||
36 | |||||
37 | sub renderGot | ||||
38 | { | ||||
39 | my $self = shift; | ||||
40 | |||||
41 | my $got = shift; | ||||
42 | |||||
43 | $self->SUPER::renderGot(reftype($got)); | ||||
44 | } | ||||
45 | |||||
46 | 1 | 10µs | 1; |