← Index
NYTProf Performance Profile   « line view »
For examples/Atom-timer.pl
  Run on Mon Aug 12 14:45:28 2013
Reported on Mon Aug 12 14:46:15 2013

Filename/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Moose/Meta/Method/Accessor/Native/Reader.pm
StatementsExecuted 127 statements in 477µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1311144µs9.39msMoose::Meta::Method::Accessor::Native::Reader::::_inline_reader_coreMoose::Meta::Method::Accessor::Native::Reader::_inline_reader_core
1311106µs10.5msMoose::Meta::Method::Accessor::Native::Reader::::_generate_methodMoose::Meta::Method::Accessor::Native::Reader::_generate_method
131110µs10µsMoose::Meta::Method::Accessor::Native::Reader::::_inline_process_argumentsMoose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments
1119µs9µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@2Moose::Meta::Method::Accessor::Native::Reader::BEGIN@2
1117µs81µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@50Moose::Meta::Method::Accessor::Native::Reader::BEGIN@50
1116µs1.82msMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@12Moose::Meta::Method::Accessor::Native::Reader::BEGIN@12
1116µs9µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@10Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10
1116µs16µsMoose::Meta::Method::Accessor::Native::Reader::::BEGIN@9Moose::Meta::Method::Accessor::Native::Reader::BEGIN@9
9116µs6µ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
# spent 9µs within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@2 which was called: # once (9µs+0s) by Module::Runtime::require_module at line 4
BEGIN {
314µs $Moose::Meta::Method::Accessor::Native::Reader::AUTHORITY = 'cpan:STEVAN';
4130µs19µs}
5{
62700ns $Moose::Meta::Method::Accessor::Native::Reader::VERSION = '2.1005';
7}
8
9221µs226µs
# spent 16µs (6+10) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@9 which was called: # once (6µs+10µs) by Module::Runtime::require_module at line 9
use strict;
# spent 16µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@9 # spent 10µs making 1 call to strict::import
10220µs212µs
# spent 9µs (6+3) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10 which was called: # once (6µs+3µs) by Module::Runtime::require_module at line 10
use warnings;
# spent 9µs making 1 call to Moose::Meta::Method::Accessor::Native::Reader::BEGIN@10 # spent 3µs making 1 call to warnings::import
11
122172µs23.63ms
# spent 1.82ms (6µs+1.81) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@12 which was called: # once (6µs+1.81ms) by Module::Runtime::require_module at line 12
use Moose::Role;
13
1412µs15.02mswith 'Moose::Meta::Method::Accessor::Native';
# spent 5.02ms making 1 call to Moose::Role::with
15
1611µs142µsrequires '_return_value';
# spent 42µs making 1 call to Moose::Role::requires
17
18
# spent 10.5ms (106µs+10.4) within Moose::Meta::Method::Accessor::Native::Reader::_generate_method which was called 13 times, avg 808µs/call: # 13 times (106µs+10.4ms) by Moose::Meta::Method::Accessor::Native::_initialize_body at line 57 of Moose/Meta/Method/Accessor/Native.pm, avg 808µs/call
sub _generate_method {
1913900ns my $self = shift;
20
21132µs my $inv = '$self';
221315µs13954µs my $slot_access = $self->_get_value($inv);
# spent 549µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::7::_get_value, avg 137µs/call # spent 228µs making 5 calls to Moose::Meta::Class::__ANON__::SERIAL::4::_get_value, avg 46µs/call # spent 178µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::5::_get_value, avg 44µs/call
23
24 return (
251350µs269.45ms 'sub {',
# spent 9.39ms making 13 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core, avg 722µs/call # spent 62µs making 13 calls to Moose::Meta::Method::Accessor::Native::_inline_curried_arguments, avg 5µs/call
26 'my ' . $inv . ' = shift;',
27 $self->_inline_curried_arguments,
28 $self->_inline_reader_core($inv, $slot_access, @_),
29 '}',
30 );
31}
32
33
# spent 9.39ms (144µs+9.24) within Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core which was called 13 times, avg 722µs/call: # 13 times (144µs+9.24ms) by Moose::Meta::Method::Accessor::Native::Reader::_generate_method at line 25, avg 722µs/call
sub _inline_reader_core {
34131µs my $self = shift;
35135µs my ($inv, $slot_access, @extra) = @_;
36
37 return (
381385µs659.24ms $self->_inline_check_argument_count,
# spent 5.79ms making 13 calls to Moose::Meta::Method::Accessor::Native::_inline_check_argument_count, avg 445µs/call # spent 2.96ms making 13 calls to Moose::Meta::Method::Accessor::_inline_check_lazy, avg 227µs/call # spent 403µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::get::_inline_check_arguments, avg 101µs/call # spent 78µs making 13 calls to Moose::Meta::Method::Accessor::Native::_inline_return_value, avg 6µs/call # spent 10µs making 13 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments, avg 754ns/call # spent 6µs making 9 calls to Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments, avg 633ns/call
39 $self->_inline_process_arguments($inv, $slot_access),
40 $self->_inline_check_arguments,
41 $self->_inline_check_lazy($inv, '$type_constraint', '$type_coercion', '$type_message'),
42 $self->_inline_return_value($slot_access),
43 );
44}
45
461318µs
# spent 10µs within Moose::Meta::Method::Accessor::Native::Reader::_inline_process_arguments which was called 13 times, avg 754ns/call: # 13 times (10µs+0s) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 38, avg 754ns/call
sub _inline_process_arguments { return }
47
48912µs
# spent 6µs within Moose::Meta::Method::Accessor::Native::Reader::_inline_check_arguments which was called 9 times, avg 633ns/call: # 9 times (6µs+0s) by Moose::Meta::Method::Accessor::Native::Reader::_inline_reader_core at line 38, avg 633ns/call
sub _inline_check_arguments { return }
49
50228µs2155µs
# spent 81µs (7+74) within Moose::Meta::Method::Accessor::Native::Reader::BEGIN@50 which was called: # once (7µs+74µs) by Module::Runtime::require_module at line 50
no Moose::Role;
51
5219µs1;