← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:39:01 2010
Reported on Wed Nov 17 22:08:45 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Accessor/Native/Array/first.pm
StatementsExecuted 23 statements in 1.83ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11177µs95µsMoose::Meta::Method::Accessor::Native::Array::first::::BEGIN@3Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3
11175µs1.31msMoose::Meta::Method::Accessor::Native::Array::first::::BEGIN@44Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44
11152µs16.4msMoose::Meta::Method::Accessor::Native::Array::first::::BEGIN@13Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13
11141µs111µsMoose::Meta::Method::Accessor::Native::Array::first::::BEGIN@4Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@4
11137µs37µsMoose::Meta::Method::Accessor::Native::Array::first::::BEGIN@6Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6
11120µs20µsMoose::Meta::Method::Accessor::Native::Array::first::::BEGIN@7Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7
0000s0sMoose::Meta::Method::Accessor::Native::Array::first::::_inline_check_argumentsMoose::Meta::Method::Accessor::Native::Array::first::_inline_check_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::first::::_maximum_argumentsMoose::Meta::Method::Accessor::Native::Array::first::_maximum_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::first::::_minimum_argumentsMoose::Meta::Method::Accessor::Native::Array::first::_minimum_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::first::::_return_valueMoose::Meta::Method::Accessor::Native::Array::first::_return_value
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Moose::Meta::Method::Accessor::Native::Array::first;
2
33104µs2113µs
# spent 95µs (77+18) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3 which was called: # once (77µs+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 3
use strict;
# spent 95µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3 # spent 18µs making 1 call to strict::import
43156µs2180µs
# spent 111µs (41+69) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@4 which was called: # once (41µs+69µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 4
use warnings;
# spent 111µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@4 # spent 69µs making 1 call to warnings::import
5
6385µs137µs
# spent 37µs within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 which was called: # once (37µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 6
use List::Util ();
73220µs120µs
# spent 20µs within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7 which was called: # once (20µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 7
use Params::Util ();
8
916µsour $VERSION = '1.19';
101120µs$VERSION = eval $VERSION;
# spent 16µs executing statements in string eval
1115µsour $AUTHORITY = 'cpan:STEVAN';
12
133863µs232.7ms
# spent 16.4ms (52µs+16.3) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13 which was called: # once (52µs+16.3ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 13
use Moose::Role;
14
15154µs118.0mswith 'Moose::Meta::Method::Accessor::Native::Reader' => {
# spent 18.0ms making 1 call to Moose::Role::with
16 -excludes => [
17 qw(
18 _minimum_arguments
19 _maximum_arguments
20 _inline_check_arguments
21 )
22 ]
23};
24
25sub _minimum_arguments { 1 }
26
27sub _maximum_arguments { 1 }
28
29sub _inline_check_arguments {
30 my $self = shift;
31
32 return $self->_inline_throw_error(
33 q{'The argument passed to first must be a code reference'})
34 . q{ unless Params::Util::_CODELIKE( $_[0] );};
35}
36
37sub _return_value {
38 my $self = shift;
39 my $slot_access = shift;
40
41 return "&List::Util::first( \$_[0], \@{ ($slot_access) } )";
42}
43
443173µs22.55ms
# spent 1.31ms (75µs+1.24) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44 which was called: # once (75µs+1.24ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 44
no Moose::Role;
45
46145µs1;