← 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:04:51 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method.pm
StatementsExecuted 715 statements in 8.66ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
349936.11ms6.11msMoose::Meta::Method::::_inline_throw_errorMoose::Meta::Method::_inline_throw_error
11171µs88µsMoose::Meta::Method::::BEGIN@3Moose::Meta::Method::BEGIN@3
11150µs324µsMoose::Meta::Method::::BEGIN@12Moose::Meta::Method::BEGIN@12
11137µs103µsMoose::Meta::Method::::BEGIN@4Moose::Meta::Method::BEGIN@4
11124µs24µsMoose::Meta::Method::::BEGIN@10Moose::Meta::Method::BEGIN@10
0000s0sMoose::Meta::Method::::_error_throwerMoose::Meta::Method::_error_thrower
0000s0sMoose::Meta::Method::::throw_errorMoose::Meta::Method::throw_error
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;
2
3397µs2106µs
# spent 88µs (71+18) within Moose::Meta::Method::BEGIN@3 which was called: # once (71µs+18µs) by base::import at line 3
use strict;
# spent 88µs making 1 call to Moose::Meta::Method::BEGIN@3 # spent 18µs making 1 call to strict::import
43193µs2169µs
# spent 103µs (37+66) within Moose::Meta::Method::BEGIN@4 which was called: # once (37µs+66µs) by base::import at line 4
use warnings;
# spent 103µs making 1 call to Moose::Meta::Method::BEGIN@4 # spent 66µs making 1 call to warnings::import
5
615µsour $VERSION = '1.19';
7157µs$VERSION = eval $VERSION;
# spent 10µs executing statements in string eval
813µsour $AUTHORITY = 'cpan:STEVAN';
9
103104µs124µs
# spent 24µs within Moose::Meta::Method::BEGIN@10 which was called: # once (24µs+0s) by base::import at line 10
use Class::MOP::MiniTrait;
# spent 24µs making 1 call to Moose::Meta::Method::BEGIN@10
11
123607µs2324µs
# spent 324µs (50+274) within Moose::Meta::Method::BEGIN@12 which was called: # once (50µs+274µs) by base::import at line 12
use base 'Class::MOP::Method';
# spent 324µs making 1 call to Moose::Meta::Method::BEGIN@12 # spent 274µs making 1 call to base::import, recursion: max depth 1, sum of overlapping time 274µs
13
14114µs112.3msClass::MOP::MiniTrait::apply(__PACKAGE__, 'Moose::Meta::Object::Trait');
# spent 12.3ms making 1 call to Class::MOP::MiniTrait::apply
15
16sub _error_thrower {
17 my $self = shift;
18 ( ref $self && $self->associated_metaclass ) || "Moose::Meta::Class";
19}
20
21sub throw_error {
22 my $self = shift;
23 my $inv = $self->_error_thrower;
24 unshift @_, "message" if @_ % 2 == 1;
25 unshift @_, method => $self if ref $self;
26 unshift @_, $inv;
27 my $handler = $inv->can("throw_error");
28 goto $handler; # to avoid incrementing depth by 1
29}
30
31
# spent 6.11ms within Moose::Meta::Method::_inline_throw_error which was called 349 times, avg 18µs/call: # 129 times (1.98ms+0s) by Moose::Meta::Method::Constructor::_generate_type_constraint_check at line 342 of Moose/Meta/Method/Constructor.pm, avg 15µs/call # 97 times (1.97ms+0s) by Moose::Meta::Method::Accessor::_generate_reader_method_inline at line 97 of Moose/Meta/Method/Accessor.pm, avg 20µs/call # 48 times (886µs+0s) by Moose::Meta::Method::Accessor::_inline_check_constraint at line 163 of Moose/Meta/Method/Accessor.pm, avg 18µs/call # 26 times (391µs+0s) by Moose::Meta::Method::Constructor::_generate_slot_initializer at line 228 of Moose/Meta/Method/Constructor.pm, avg 15µs/call # 24 times (461µs+0s) by Moose::Meta::Method::Constructor::_generate_BUILDARGS at line 148 of Moose/Meta/Method/Constructor.pm, avg 19µs/call # 15 times (258µs+0s) by Moose::Meta::Method::Accessor::_inline_check_lazy at line 198 of Moose/Meta/Method/Accessor.pm, avg 17µs/call # 4 times (71µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_check_argument_count at line 88 of Moose/Meta/Method/Accessor/Native.pm, avg 18µs/call # 4 times (60µs+0s) by Moose::Meta::Method::Accessor::_inline_check_lazy at line 217 of Moose/Meta/Method/Accessor.pm, avg 15µs/call # 2 times (35µs+0s) by Moose::Meta::Method::Accessor::_inline_check_required at line 183 of Moose/Meta/Method/Accessor.pm, avg 18µs/call
sub _inline_throw_error {
326987.56ms my ( $self, $msg, $args ) = @_;
33 "\$meta->throw_error($msg" . ($args ? ", $args" : "") . ")"; # FIXME makes deparsing *REALLY* hard
34}
35
36120µs1;
37
38__END__