← 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:23 2010

File /usr/local/lib/perl5/5.10.1/Test/Deep/Array.pm
Statements Executed 19
Statement Execution Time 203µs
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11121µs2.01msTest::Deep::Array::::descendTest::Deep::Array::descend
1117µs19µsTest::Deep::Array::::BEGIN@6Test::Deep::Array::BEGIN@6
1112µs2µsTest::Deep::Array::::initTest::Deep::Array::init
0000s0sTest::Deep::Array::::reset_arrowTest::Deep::Array::reset_arrow
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1323µs224µsuse strict;
# spent 21µs making 1 call to Test::Deep::BEGIN@1 # spent 3µs making 1 call to strict::import
2327µs226µsuse warnings;
# spent 17µs making 1 call to Test::Deep::BEGIN@2 # spent 9µs making 1 call to warnings::import
3
4package Test::Deep::Array;
5
63130µs232µs
# spent 19µs (7+13) within Test::Deep::Array::BEGIN@6 which was called # once (7µs+13µs) by Test::Deep::__ANON__[/usr/local/lib/perl5/5.10.1/Test/Deep.pm:92] at line 6
use Test::Deep::Ref;
# spent 19µs making 1 call to Test::Deep::Array::BEGIN@6 # spent 13µs making 1 call to Test::Deep::Cmp::import
7
8sub init
9
# spent 2µs within Test::Deep::Array::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
121200ns my $val = shift;
13
1416µs $self->{val} = $val;
15}
16
17sub descend
18
# spent 2.01ms (21µs+1.99) within Test::Deep::Array::descend which was called # once (21µs+1.99ms) by Test::Deep::descend at line 312 of Test/Deep.pm
{
191200ns my $self = shift;
201100ns my $got = shift;
21
221400ns my $exp = $self->{val};
23
2413µs2394µs return 0 unless Test::Deep::descend($got, Test::Deep::arraylength(scalar @$exp));
# spent 394µs making 1 call to Test::Deep::__ANON__[Test/Deep.pm:92] # spent 863µs making 1 call to Test::Deep::descend, recursion: max depth 3, time 863µs
25
2615µs1167µs return 0 unless $self->test_class($got);
# spent 167µs making 1 call to Test::Deep::Ref::test_class
27
2815µs2446µs return Test::Deep::descend($got, Test::Deep::arrayelementsonly($exp));
# spent 446µs making 1 call to Test::Deep::__ANON__[Test/Deep.pm:92] # spent 122µs making 1 call to Test::Deep::descend, recursion: max depth 3, time 122µs
29}
30
31sub reset_arrow
32{
33 return 0;
34}
35
3613µs1;