← Index
NYTProf Performance Profile   « block view • line view • sub view »
For 05.Domain_and_Item.t
  Run on Tue May 4 17:21:41 2010
Reported on Tue May 4 17:23:24 2010

File /usr/local/lib/perl5/5.10.1/Test/Deep/ArrayElementsOnly.pm
Statements Executed 19
Statement Execution Time 246µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
121212210µs255µsTest::Deep::::BEGIN@1 Test::Deep::BEGIN@1
121212116µs264µsTest::Deep::::BEGIN@2 Test::Deep::BEGIN@2
11111µs20µsTest::Deep::ArrayElementsOnly::::descendTest::Deep::ArrayElementsOnly::descend
1117µs22µsTest::Deep::ArrayElementsOnly::::BEGIN@6Test::Deep::ArrayElementsOnly::BEGIN@6
1112µs2µsTest::Deep::ArrayElementsOnly::::initTest::Deep::ArrayElementsOnly::init
0000s0sTest::Deep::ArrayElementsOnly::::render_stackTest::Deep::ArrayElementsOnly::render_stack
0000s0sTest::Deep::ArrayElementsOnly::::reset_arrowTest::Deep::ArrayElementsOnly::reset_arrow
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1322µs223µs
# spent 255µs (210+45) within Test::Deep::BEGIN@1 which was called 12 times, avg 21µs/call: # once (28µs+8µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/Ignore.pm # once (22µs+4µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/Hash.pm # once (21µs+4µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/ArrayLength.pm # once (19µs+4µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/RefType.pm # once (18µs+4µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/Shallow.pm # once (18µs+4µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/Blessed.pm # once (18µs+3µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/Array.pm # once (16µs+4µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 # once (14µs+3µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 1 of Test/Deep/ArrayLengthOnly.pm # once (13µs+3µs) by Test::Deep::BEGIN@8 at line 1 of Test/Deep/Stack.pm # once (13µs+3µs) by Test::Deep::BEGIN@9 at line 1 of Test/Deep/RegexpVersion.pm # once (12µs+3µs) by Test::Deep::BEGIN@7 at line 1 of Test/Deep/Cache.pm
use strict;
# spent 19µs making 1 call to Test::Deep::BEGIN@1 # spent 3µs making 1 call to strict::import
2329µs237µs
# spent 264µs (116+148) within Test::Deep::BEGIN@2 which was called 12 times, avg 22µs/call: # once (14µs+24µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/Ignore.pm # once (12µs+20µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/Hash.pm # once (16µs+11µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 # once (10µs+13µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/ArrayLength.pm # once (10µs+12µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/Shallow.pm # once (9µs+12µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/RefType.pm # once (10µs+9µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/ArrayLengthOnly.pm # once (8µs+11µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/Blessed.pm # once (7µs+9µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 2 of Test/Deep/Array.pm # once (7µs+9µs) by Test::Deep::BEGIN@7 at line 2 of Test/Deep/Cache.pm # once (7µs+9µs) by Test::Deep::BEGIN@9 at line 2 of Test/Deep/RegexpVersion.pm # once (6µs+9µs) by Test::Deep::BEGIN@8 at line 2 of Test/Deep/Stack.pm
use warnings;
# spent 27µs making 1 call to Test::Deep::BEGIN@2 # spent 11µs making 1 call to warnings::import
3
4package Test::Deep::ArrayElementsOnly;
5
63176µs237µs
# spent 22µs (7+15) within Test::Deep::ArrayElementsOnly::BEGIN@6 which was called # once (7µs+15µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 6
use Test::Deep::Ref;
# spent 22µs making 1 call to Test::Deep::ArrayElementsOnly::BEGIN@6 # spent 15µs making 1 call to Test::Deep::Cmp::import
7
8sub init
9
# spent 2µs within Test::Deep::ArrayElementsOnly::init which was called # once (2µs+0s) by Test::Deep::Cmp::new at line 32 of Test/Deep/Cmp.pm
{
101200ns my $self = shift;
11
121100ns my $val = shift;
13
1415µs $self->{val} = $val;
15}
16
17sub descend
18
# spent 20µs (11+8) within Test::Deep::ArrayElementsOnly::descend which was called # once (11µs+8µs) by Test::Deep::descend at line 312 of Test/Deep.pm
{
191200ns my $self = shift;
201100ns my $got = shift;
21
221500ns my $exp = $self->{val};
23
2413µs18µs my $data = $self->data;
# spent 8µs making 1 call to Test::Deep::Cmp::data
25
2614µs for my $i (0..$#{$exp})
27 {
28 $data->{index} = $i;
29
30 my $got_elem = $got->[$i];
31 my $exp_elem = $exp->[$i];
32
33 return 0 unless Test::Deep::descend($got_elem, $exp_elem)
34 }
35
3613µs return 1;
37}
38
39sub render_stack
40{
41 my $self = shift;
42 my ($var, $data) = @_;
43 $var .= "->" unless $Test::Deep::Stack->incArrow;
44 $var .= "[$data->{index}]";
45
46 return $var;
47}
48
49sub reset_arrow
50{
51 return 0;
52}
53
5412µs1;