← Index
NYTProf Performance Profile   « block view • line view • sub view »
For t/app_dpath.t
  Run on Tue Jun 5 15:25:28 2012
Reported on Tue Jun 5 15:26:12 2012

Filename/home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Test/Deep/Array.pm
StatementsExecuted 142 statements in 2.88ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
15111.14ms70.5msTest::Deep::Array::::descendTest::Deep::Array::descend
1111.03ms5.45msTest::Deep::Array::::BEGIN@6Test::Deep::Array::BEGIN@6
1511495µs495µsTest::Deep::Array::::initTest::Deep::Array::init
111109µs148µsTest::Deep::::BEGIN@1.7 Test::Deep::BEGIN@1.7
11158µs117µsTest::Deep::::BEGIN@2.8 Test::Deep::BEGIN@2.8
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
12155µs2188µs
# spent 148µs (109+40) within Test::Deep::BEGIN@1.7 which was called: # once (109µs+40µ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
use strict;
# spent 148µs making 1 call to Test::Deep::BEGIN@1.7 # spent 40µs making 1 call to strict::import
22188µs2176µs
# spent 117µs (58+59) within Test::Deep::BEGIN@2.8 which was called: # once (58µs+59µ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
use warnings;
# spent 117µs making 1 call to Test::Deep::BEGIN@2.8 # spent 59µs making 1 call to warnings::import
3
4package Test::Deep::Array;
5
62867µs25.51ms
# spent 5.45ms (1.03+4.42) within Test::Deep::Array::BEGIN@6 which was called: # once (1.03ms+4.42ms) 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
use Test::Deep::Ref;
# spent 5.45ms making 1 call to Test::Deep::Array::BEGIN@6 # spent 58µs making 1 call to Test::Deep::Cmp::import
7
8sub init
9
# spent 495µs within Test::Deep::Array::init which was called 15 times, avg 33µs/call: # 15 times (495µs+0s) by Test::Deep::Cmp::new at line 33 of Test/Deep/Cmp.pm, avg 33µs/call
{
101526µs my $self = shift;
11
121519µs my $val = shift;
13
1415444µs $self->{val} = $val;
15}
16
17sub descend
18
# spent 70.5ms (1.14+69.3) within Test::Deep::Array::descend which was called 15 times, avg 4.70ms/call: # 15 times (1.14ms+69.3ms) by Test::Deep::descend at line 328 of Test/Deep.pm, avg 4.70ms/call
{
191525µs my $self = shift;
201583µs my $got = shift;
21
221556µs my $exp = $self->{val};
23
2415528µs303.00ms return 0 unless Test::Deep::descend($got, Test::Deep::arraylength(scalar @$exp));
# spent 3.00ms making 15 calls to Test::Deep::__ANON__[Test/Deep.pm:80], avg 200µs/call # spent 39.1ms making 15 calls to Test::Deep::descend, avg 2.60ms/call, recursion: max depth 1, sum of overlapping time 39.1ms
25
2615176µs1514.7ms return 0 unless $self->test_class($got);
# spent 14.7ms making 15 calls to Test::Deep::Ref::test_class, avg 979µs/call
27
2815304µs303.12ms return Test::Deep::descend($got, Test::Deep::arrayelementsonly($exp));
# spent 3.12ms making 15 calls to Test::Deep::__ANON__[Test/Deep.pm:80], avg 208µs/call # spent 9.47ms making 15 calls to Test::Deep::descend, avg 631µs/call, recursion: max depth 1, sum of overlapping time 9.47ms
29}
30
31sub reset_arrow
32{
33 return 0;
34}
35
3619µs1;