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 | BEGIN@17 | Package::Stash::
1 | 1 | 1 | 11µs | 11µs | BEGIN@10 | Package::Stash::
1 | 1 | 1 | 8µs | 15µs | BEGIN@15 | Package::Stash::
1 | 1 | 1 | 7µs | 7µs | BEGIN@2 | Package::Stash::
1 | 1 | 1 | 6µs | 16µs | BEGIN@8 | Package::Stash::
1 | 1 | 1 | 5µs | 8µs | BEGIN@9 | Package::Stash::
0 | 0 | 0 | 0s | 0s | add_symbol | Package::Stash::
0 | 0 | 0 | 0s | 0s | bootstrap | Package::Stash::
0 | 0 | 0 | 0s | 0s | get_all_symbols | Package::Stash::
0 | 0 | 0 | 0s | 0s | get_or_add_symbol | Package::Stash::
0 | 0 | 0 | 0s | 0s | get_symbol | Package::Stash::
0 | 0 | 0 | 0s | 0s | has_symbol | Package::Stash::
0 | 0 | 0 | 0s | 0s | list_all_symbols | Package::Stash::
0 | 0 | 0 | 0s | 0s | name | Package::Stash::
0 | 0 | 0 | 0s | 0s | namespace | Package::Stash::
0 | 0 | 0 | 0s | 0s | new | Package::Stash::
0 | 0 | 0 | 0s | 0s | remove_glob | Package::Stash::
0 | 0 | 0 | 0s | 0s | remove_symbol | Package::Stash::
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__ |