← 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:12 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/Hash/delete.pm
StatementsExecuted 17 statements in 1.27ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111104µs124µsMoose::Meta::Method::Accessor::Native::Hash::delete::::BEGIN@3Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@3
11144µs768µsMoose::Meta::Method::Accessor::Native::Hash::delete::::BEGIN@41Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@41
11144µs14.8msMoose::Meta::Method::Accessor::Native::Hash::delete::::BEGIN@10Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@10
11142µs111µsMoose::Meta::Method::Accessor::Native::Hash::delete::::BEGIN@4Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@4
0000s0sMoose::Meta::Method::Accessor::Native::Hash::delete::::_adds_membersMoose::Meta::Method::Accessor::Native::Hash::delete::_adds_members
0000s0sMoose::Meta::Method::Accessor::Native::Hash::delete::::_inline_optimized_set_new_valueMoose::Meta::Method::Accessor::Native::Hash::delete::_inline_optimized_set_new_value
0000s0sMoose::Meta::Method::Accessor::Native::Hash::delete::::_potential_valueMoose::Meta::Method::Accessor::Native::Hash::delete::_potential_value
0000s0sMoose::Meta::Method::Accessor::Native::Hash::delete::::_return_valueMoose::Meta::Method::Accessor::Native::Hash::delete::_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::Hash::delete;
2
33117µs2144µs
# spent 124µs (104+20) within Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@3 which was called: # once (104µs+20µs) by Moose::Meta::Attribute::Native::Trait::Hash::BEGIN@13 at line 3
use strict;
# spent 124µs making 1 call to Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@3 # spent 20µs making 1 call to strict::import
43257µs2180µs
# spent 111µs (42+69) within Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@4 which was called: # once (42µs+69µs) by Moose::Meta::Attribute::Native::Trait::Hash::BEGIN@13 at line 4
use warnings;
# spent 111µs making 1 call to Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@4 # spent 69µs making 1 call to warnings::import
5
614µsour $VERSION = '1.19';
7180µs$VERSION = eval $VERSION;
# spent 10µs executing statements in string eval
813µsour $AUTHORITY = 'cpan:STEVAN';
9
103611µs229.5ms
# spent 14.8ms (44µs+14.7) within Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@10 which was called: # once (44µs+14.7ms) by Moose::Meta::Attribute::Native::Trait::Hash::BEGIN@13 at line 10
use Moose::Role;
11
12133µs142.8mswith 'Moose::Meta::Method::Accessor::Native::Hash::Writer' => {
# spent 42.8ms making 1 call to Moose::Role::with
13 -excludes => [
14 qw(
15 _inline_optimized_set_new_value
16 _return_value
17 )
18 ],
19};
20
21sub _adds_members { 0 }
22
23sub _potential_value {
24 my ( $self, $slot_access ) = @_;
25
26 return "( do { my \%potential = %{ ($slot_access) }; \@return = delete \@potential{\@_}; \\\%potential; } )";
27}
28
29sub _inline_optimized_set_new_value {
30 my ( $self, $inv, $new, $slot_access ) = @_;
31
32 return "\@return = delete \@{ ($slot_access) }{\@_}";
33}
34
35sub _return_value {
36 my ( $self, $slot_access ) = @_;
37
38 return 'return wantarray ? @return : $return[-1];';
39}
40
413114µs21.49ms
# spent 768µs (44+724) within Moose::Meta::Method::Accessor::Native::Hash::delete::BEGIN@41 which was called: # once (44µs+724µs) by Moose::Meta::Attribute::Native::Trait::Hash::BEGIN@13 at line 41
no Moose::Role;
42
43145µs1;