← 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:12:09 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/Counter/inc.pm
StatementsExecuted 23 statements in 1.46ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11182µs101µsMoose::Meta::Method::Accessor::Native::Counter::inc::::BEGIN@3Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@3
11163µs813µsMoose::Meta::Method::Accessor::Native::Counter::inc::::BEGIN@37Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@37
11145µs14.8msMoose::Meta::Method::Accessor::Native::Counter::inc::::BEGIN@10Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@10
11141µs110µsMoose::Meta::Method::Accessor::Native::Counter::inc::::BEGIN@4Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@4
11122µs22µsMoose::Meta::Method::Accessor::Native::Counter::inc::::_inline_optimized_set_new_valueMoose::Meta::Method::Accessor::Native::Counter::inc::_inline_optimized_set_new_value
11118µs18µsMoose::Meta::Method::Accessor::Native::Counter::inc::::_potential_valueMoose::Meta::Method::Accessor::Native::Counter::inc::_potential_value
1119µs9µsMoose::Meta::Method::Accessor::Native::Counter::inc::::_minimum_argumentsMoose::Meta::Method::Accessor::Native::Counter::inc::_minimum_arguments
1118µs8µsMoose::Meta::Method::Accessor::Native::Counter::inc::::_maximum_argumentsMoose::Meta::Method::Accessor::Native::Counter::inc::_maximum_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::Counter::inc;
2
33106µs2120µs
# spent 101µs (82+19) within Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@3 which was called: # once (82µs+19µs) by Moose::Meta::Attribute::Native::Trait::Counter::BEGIN@10 at line 3
use strict;
# spent 101µs making 1 call to Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@3 # spent 19µs making 1 call to strict::import
43279µs2180µs
# spent 110µs (41+69) within Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@4 which was called: # once (41µs+69µs) by Moose::Meta::Attribute::Native::Trait::Counter::BEGIN@10 at line 4
use warnings;
# spent 110µs making 1 call to Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@4 # spent 69µs making 1 call to warnings::import
5
614µsour $VERSION = '1.19';
7176µs$VERSION = eval $VERSION;
# spent 10µs executing statements in string eval
813µsour $AUTHORITY = 'cpan:STEVAN';
9
103631µs229.7ms
# spent 14.8ms (45µs+14.8) within Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@10 which was called: # once (45µs+14.8ms) by Moose::Meta::Attribute::Native::Trait::Counter::BEGIN@10 at line 10
use Moose::Role;
11
12134µs140.7mswith 'Moose::Meta::Method::Accessor::Native::Writer' => {
# spent 40.7ms making 1 call to Moose::Role::with
13 -excludes => [
14 qw(
15 _minimum_arguments
16 _maximum_arguments
17 _inline_optimized_set_new_value
18 )
19 ]
20};
21
22128µs
# spent 9µs within Moose::Meta::Method::Accessor::Native::Counter::inc::_minimum_arguments which was called: # once (9µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_check_argument_count at line 66 of Moose/Meta/Method/Accessor/Native.pm
sub _minimum_arguments { 0 }
23117µs
# spent 8µs within Moose::Meta::Method::Accessor::Native::Counter::inc::_maximum_arguments which was called: # once (8µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_check_argument_count at line 80 of Moose/Meta/Method/Accessor/Native.pm
sub _maximum_arguments { 1 }
24
25
# spent 18µs within Moose::Meta::Method::Accessor::Native::Counter::inc::_potential_value which was called: # once (18µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_writer_core at line 53 of Moose/Meta/Method/Accessor/Native/Writer.pm
sub _potential_value {
26296µs my ( $self, $slot_access ) = @_;
27
28 return "$slot_access + ( defined \$_[0] ? \$_[0] : 1 )";
29}
30
31
# spent 22µs within Moose::Meta::Method::Accessor::Native::Counter::inc::_inline_optimized_set_new_value which was called: # once (22µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value at line 166 of Moose/Meta/Method/Accessor/Native/Writer.pm
sub _inline_optimized_set_new_value {
32229µs my ( $self, $inv, $new, $slot_access ) = @_;
33
34 return "$slot_access += defined \$_[0] ? \$_[0] : 1";
35}
36
373115µs21.56ms
# spent 813µs (63+750) within Moose::Meta::Method::Accessor::Native::Counter::inc::BEGIN@37 which was called: # once (63µs+750µs) by Moose::Meta::Attribute::Native::Trait::Counter::BEGIN@10 at line 37
no Moose::Role;
38
39144µs1;