| Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/Package/Stash.pm |
| Statements | Executed 34 statements in 492µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 69µs | 809µs | Package::Stash::BEGIN@17 |
| 1 | 1 | 1 | 11µs | 11µs | Package::Stash::BEGIN@10 |
| 1 | 1 | 1 | 8µs | 15µs | Package::Stash::BEGIN@15 |
| 1 | 1 | 1 | 7µs | 7µs | Package::Stash::BEGIN@2 |
| 1 | 1 | 1 | 6µs | 16µs | Package::Stash::BEGIN@8 |
| 1 | 1 | 1 | 5µs | 8µs | Package::Stash::BEGIN@9 |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::add_symbol |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::bootstrap |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::get_all_symbols |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::get_or_add_symbol |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::get_symbol |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::has_symbol |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::list_all_symbols |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::name |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::namespace |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::new |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::remove_glob |
| 0 | 0 | 0 | 0s | 0s | Package::Stash::remove_symbol |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Package::Stash; | ||||
| 2 | # spent 7µs within Package::Stash::BEGIN@2 which was called:
# once (7µs+0s) by Class::MOP::Package::BEGIN@16 at line 4 | ||||
| 3 | 1 | 4µs | $Package::Stash::AUTHORITY = 'cpan:DOY'; | ||
| 4 | 1 | 25µs | 1 | 7µs | } # spent 7µs making 1 call to Package::Stash::BEGIN@2 |
| 5 | { | ||||
| 6 | 2 | 600ns | $Package::Stash::VERSION = '0.35'; | ||
| 7 | } | ||||
| 8 | 2 | 19µs | 2 | 26µs | # spent 16µs (6+10) within Package::Stash::BEGIN@8 which was called:
# once (6µs+10µs) by Class::MOP::Package::BEGIN@16 at line 8 # spent 16µs making 1 call to Package::Stash::BEGIN@8
# spent 10µs making 1 call to strict::import |
| 9 | 2 | 23µs | 2 | 11µs | # spent 8µs (5+3) within Package::Stash::BEGIN@9 which was called:
# once (5µs+3µs) by Class::MOP::Package::BEGIN@16 at line 9 # spent 8µs making 1 call to Package::Stash::BEGIN@9
# spent 3µs making 1 call to warnings::import |
| 10 | 2 | 50µs | 1 | 11µs | # spent 11µs within Package::Stash::BEGIN@10 which was called:
# once (11µs+0s) by Class::MOP::Package::BEGIN@16 at line 10 # spent 11µs making 1 call to Package::Stash::BEGIN@10 |
| 11 | # ABSTRACT: routines for manipulating stashes | ||||
| 12 | |||||
| 13 | 1 | 0s | our $IMPLEMENTATION; | ||
| 14 | |||||
| 15 | 3 | 123µs | 2 | 22µs | # spent 15µs (8+7) within Package::Stash::BEGIN@15 which was called:
# once (8µs+7µs) by Class::MOP::Package::BEGIN@16 at line 15 # spent 15µs making 1 call to Package::Stash::BEGIN@15
# spent 7µs making 1 call to UNIVERSAL::VERSION |
| 16 | |||||
| 17 | # spent 809µs (69+740) within Package::Stash::BEGIN@17 which was called:
# once (69µs+740µs) by Class::MOP::Package::BEGIN@16 at line 33 | ||||
| 18 | 1 | 100ns | local $ENV{PACKAGE_STASH_IMPLEMENTATION} = $IMPLEMENTATION | ||
| 19 | if ( $IMPLEMENTATION and not $ENV{PACKAGE_STASH_IMPLEMENTATION} ); | ||||
| 20 | |||||
| 21 | 1 | 6µs | 2 | 582µs | Module::Implementation::build_loader_sub( # spent 561µs making 1 call to Module::Implementation::__ANON__[Module/Implementation.pm:47]
# spent 20µs making 1 call to Module::Implementation::build_loader_sub |
| 22 | implementations => [ 'XS', 'PP' ] | ||||
| 23 | )->(); | ||||
| 24 | 1 | 1µs | 1 | 2µs | $IMPLEMENTATION = Module::Implementation::implementation_for(__PACKAGE__); # spent 2µs making 1 call to Module::Implementation::implementation_for |
| 25 | |||||
| 26 | 1 | 500ns | my $impl = "Package::Stash::$IMPLEMENTATION"; | ||
| 27 | 1 | 24µs | 1 | 18µs | my $from = $impl->new($impl); # spent 18µs making 1 call to Package::Stash::XS::new |
| 28 | 1 | 5µs | 1 | 3µs | my $to = $impl->new(__PACKAGE__); # spent 3µs making 1 call to Package::Stash::XS::new |
| 29 | 1 | 31µs | 3 | 39µs | my $methods = $from->get_all_symbols('CODE'); # spent 27µs making 1 call to Package::Stash::XS::get_all_symbols
# spent 11µs making 1 call to Package::Stash::XS::namespace
# spent 700ns making 1 call to Package::Stash::XS::name |
| 30 | 1 | 14µs | for my $meth (keys %$methods) { | ||
| 31 | 12 | 133µs | 37 | 122µs | $to->add_symbol("&$meth" => $methods->{$meth}); # spent 108µs making 12 calls to Package::Stash::XS::add_symbol, avg 9µs/call
# spent 9µs making 12 calls to Package::Stash::XS::namespace, avg 750ns/call
# spent 4µs making 13 calls to Package::Stash::XS::name, avg 338ns/call |
| 32 | } | ||||
| 33 | 1 | 29µs | 1 | 809µs | } # spent 809µs making 1 call to Package::Stash::BEGIN@17 |
| 34 | |||||
| 35 | |||||
| 36 | 1 | 2µs | 1; | ||
| 37 | |||||
| 38 | __END__ |