← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:42:38 2010
Reported on Wed Nov 17 22:04:54 2010

Filename/home/doy/coding/src/Moose/blib/lib//Moose/Meta/Method/Accessor/Native/Reader.pm
StatementsExecuted 45 statements in 1.78ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
311279µs1.41msMoose::Meta::Method::Accessor::Native::Reader::::_inline_reader_coreMoose::Meta::Method::Accessor::Native::Reader::_inline_reader_core
311210µs3.20msMoose::Meta::Method::Accessor::Native::Reader::::_generate_methodMoose::Meta::Method::Accessor::Native::Reader::_generate_method
11172µs90µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@3Moose::Meta::Method::Accessor::Native::Reader::BEGIN@3
11144µs729µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@48Moose::Meta::Method::Accessor::Native::Reader::BEGIN@48
11143µs13.7msMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@10Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10
11141µs108µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@4Moose::Meta::Method::Accessor::Native::Reader::BEGIN@4
31123µs23µsMoose::Meta::Method::Accessor::Native::Reader::::_inline_process_argumentsMoose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments
31122µs22µsMoose::Meta::Method::Accessor::Native::Reader::::_inline_check_argumentsMoose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments
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::Reader;
2
33102µs2108µs
# spent 90µs (72+18) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@3 which was called: # once (72µs+18µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 3
use strict;
# spent 90µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@3 # spent 18µs making 1 call to strict::import
43239µs2174µs
# spent 108µs (41+67) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@4 which was called: # once (41µs+67µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 4
use warnings;
# spent 108µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@4 # spent 67µs making 1 call to warnings::import
5
614µsour $VERSION = '1.19';
7172µs$VERSION = eval $VERSION;
# spent 10µs executing statements in string eval
814µsour $AUTHORITY = 'cpan:STEVAN';
9
103688µs227.3ms
# spent 13.7ms (43µs+13.6) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10 which was called: # once (43µs+13.6ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 10
use Moose::Role;
11
12118µs140.4mswith 'Moose::Meta::Method::Accessor::Native';
# spent 40.4ms making 1 call to Moose::Role::with
13
14112µs1366µsrequires '_return_value';
# spent 366µs making 1 call to Moose::Role::requires
15
16
# spent 3.20ms (210µs+2.99) within Moose::Meta::Method::Accessor::Native::Reader::_generate_method which was called 3 times, avg 1.07ms/call: # 3 times (210µs+2.99ms) by Moose::Meta::Method::Accessor::Native::_initialize_body at line 46 of Moose/Meta/Method/Accessor/Native.pm, avg 1.07ms/call
sub _generate_method {
1712189µs my $self = shift;
18
19 my $inv = '$self';
2031.40ms my $slot_access = $self->_get_value($inv);
21
22 return (
2361.59ms 'sub {',
# spent 1.41ms making 3 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core, avg 469µs/call # spent 182µs making 3 calls to Moose::Meta::Method::Accessor::Native::_inline_curried_arguments, avg 61µs/call
24 'my ' . $inv . ' = shift;',
25 $self->_inline_curried_arguments,
26 $self->_inline_reader_core($inv, $slot_access, @_),
27 '}',
28 );
29}
30
31
# spent 1.41ms (279µs+1.13) within Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core which was called 3 times, avg 469µs/call: # 3 times (279µs+1.13ms) by Moose::Meta::Method::Accessor::Native::Reader::_generate_method at line 23, avg 469µs/call
sub _inline_reader_core {
329225µs my $self = shift;
33 my ($inv, $slot_access, @extra) = @_;
34
35 return (
36151.13ms $self->_inline_check_argument_count,
# spent 521µs making 3 calls to Moose::Meta::Method::Accessor::Native::_inline_check_argument_count, avg 174µs/call # spent 299µs making 3 calls to Moose::Meta::Method::Accessor::Native::_inline_return_value, avg 100µs/call # spent 264µs making 3 calls to Moose::Meta::Method::Accessor::_inline_check_lazy, avg 88µs/call # spent 23µs making 3 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments, avg 8µs/call # spent 22µs making 3 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments, avg 7µs/call
37 $self->_inline_process_arguments($inv, $slot_access),
38 $self->_inline_check_arguments,
39 $self->_inline_check_lazy($inv, '$type_constraint', '$type_constraint_obj'),
40 $self->_inline_return_value($slot_access),
41 );
42}
43
44335µs
# spent 23µs within Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments which was called 3 times, avg 8µs/call: # 3 times (23µs+0s) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 36, avg 8µs/call
sub _inline_process_arguments { return }
45
46334µs
# spent 22µs within Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments which was called 3 times, avg 7µs/call: # 3 times (22µs+0s) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 36, avg 7µs/call
sub _inline_check_arguments { return }
47
483109µs21.41ms
# spent 729µs (44+685) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@48 which was called: # once (44µs+685µs) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 48
no Moose::Role;
49
50150µs1;