← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:45:08 2010
Reported on Wed Nov 17 22:10:14 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/grep.pm
StatementsExecuted 20 statements in 1.48ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111100µs118µsMoose::Meta::Method::Accessor::Native::Array::grep::::BEGIN@3Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@3
11148µs785µsMoose::Meta::Method::Accessor::Native::Array::grep::::BEGIN@43Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@43
11143µs16.6msMoose::Meta::Method::Accessor::Native::Array::grep::::BEGIN@12Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@12
11143µs113µsMoose::Meta::Method::Accessor::Native::Array::grep::::BEGIN@4Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@4
11120µs20µsMoose::Meta::Method::Accessor::Native::Array::grep::::BEGIN@6Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@6
0000s0sMoose::Meta::Method::Accessor::Native::Array::grep::::_inline_check_argumentsMoose::Meta::Method::Accessor::Native::Array::grep::_inline_check_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::grep::::_maximum_argumentsMoose::Meta::Method::Accessor::Native::Array::grep::_maximum_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::grep::::_minimum_argumentsMoose::Meta::Method::Accessor::Native::Array::grep::_minimum_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::grep::::_return_valueMoose::Meta::Method::Accessor::Native::Array::grep::_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::grep;
2
33247µs2137µs
# spent 118µs (100+18) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@3 which was called: # once (100µs+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 3
use strict;
# spent 118µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@3 # spent 19µs making 1 call to strict::import
43101µs2184µs
# spent 113µs (43+71) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@4 which was called: # once (43µs+71µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 4
use warnings;
# spent 113µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@4 # spent 71µs making 1 call to warnings::import
5
63267µs120µs
# spent 20µs within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@6 which was called: # once (20µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 6
use Params::Util ();
7
815µsour $VERSION = '1.19';
9181µs$VERSION = eval $VERSION;
# spent 12µs executing statements in string eval
1013µsour $AUTHORITY = 'cpan:STEVAN';
11
123587µs233.2ms
# spent 16.6ms (43µs+16.6) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@12 which was called: # once (43µs+16.6ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 12
use Moose::Role;
13
14134µs117.9mswith 'Moose::Meta::Method::Accessor::Native::Reader' => {
# spent 17.9ms making 1 call to Moose::Role::with
15 -excludes => [
16 qw(
17 _minimum_arguments
18 _maximum_arguments
19 _inline_check_arguments
20 )
21 ]
22};
23
24sub _minimum_arguments { 1 }
25
26sub _maximum_arguments { 1 }
27
28sub _inline_check_arguments {
29 my $self = shift;
30
31 return $self->_inline_throw_error(
32 q{'The argument passed to grep must be a code reference'})
33 . q{ unless Params::Util::_CODELIKE( $_[0] );};
34}
35
36sub _return_value {
37 my $self = shift;
38 my $slot_access = shift;
39
40 return "grep { \$_[0]->() } \@{ ($slot_access) }";
41}
42
433114µs21.52ms
# spent 785µs (48+737) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@43 which was called: # once (48µs+737µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 43
no Moose::Role;
44
45145µs1;