| Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/B/Hooks/EndOfScope.pm |
| Statements | Executed 17 statements in 247µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 20µs | 1.84ms | B::Hooks::EndOfScope::BEGIN@18 |
| 1 | 1 | 1 | 9µs | 60µs | B::Hooks::EndOfScope::BEGIN@34 |
| 1 | 1 | 1 | 8µs | 8µs | B::Hooks::EndOfScope::BEGIN@16 |
| 1 | 1 | 1 | 8µs | 8µs | B::Hooks::EndOfScope::BEGIN@2 |
| 1 | 1 | 1 | 6µs | 15µs | B::Hooks::EndOfScope::BEGIN@10 |
| 1 | 1 | 1 | 5µs | 8µs | B::Hooks::EndOfScope::BEGIN@11 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package B::Hooks::EndOfScope; | ||||
| 2 | # spent 8µs within B::Hooks::EndOfScope::BEGIN@2 which was called:
# once (8µs+0s) by namespace::autoclean::BEGIN@14 at line 4 | ||||
| 3 | 1 | 6µs | $B::Hooks::EndOfScope::AUTHORITY = 'cpan:FLORA'; | ||
| 4 | 1 | 26µs | 1 | 8µs | } # spent 8µs making 1 call to B::Hooks::EndOfScope::BEGIN@2 |
| 5 | { | ||||
| 6 | 2 | 700ns | $B::Hooks::EndOfScope::VERSION = '0.12'; | ||
| 7 | } | ||||
| 8 | # ABSTRACT: Execute code after a scope finished compilation | ||||
| 9 | |||||
| 10 | 2 | 18µs | 2 | 25µs | # spent 15µs (6+10) within B::Hooks::EndOfScope::BEGIN@10 which was called:
# once (6µs+10µs) by namespace::autoclean::BEGIN@14 at line 10 # spent 15µs making 1 call to B::Hooks::EndOfScope::BEGIN@10
# spent 10µs making 1 call to strict::import |
| 11 | 2 | 20µs | 2 | 11µs | # spent 8µs (5+3) within B::Hooks::EndOfScope::BEGIN@11 which was called:
# once (5µs+3µs) by namespace::autoclean::BEGIN@14 at line 11 # spent 8µs making 1 call to B::Hooks::EndOfScope::BEGIN@11
# spent 3µs making 1 call to warnings::import |
| 12 | |||||
| 13 | # note - a %^H tie() fallback will probably work on 5.6 as well, | ||||
| 14 | # if you need to go that low - sane patches passing *all* tests | ||||
| 15 | # will be gladly accepted | ||||
| 16 | 2 | 97µs | 1 | 8µs | # spent 8µs within B::Hooks::EndOfScope::BEGIN@16 which was called:
# once (8µs+0s) by namespace::autoclean::BEGIN@14 at line 16 # spent 8µs making 1 call to B::Hooks::EndOfScope::BEGIN@16 |
| 17 | |||||
| 18 | # spent 1.84ms (20µs+1.82) within B::Hooks::EndOfScope::BEGIN@18 which was called:
# once (20µs+1.82ms) by namespace::autoclean::BEGIN@14 at line 32 | ||||
| 19 | 1 | 300ns | require Module::Implementation; | ||
| 20 | 1 | 1µs | 1 | 2µs | my $impl = Module::Implementation::implementation_for('B::Hooks::EndOfScope') || do { # spent 2µs making 1 call to Module::Implementation::implementation_for |
| 21 | 1 | 6µs | 2 | 1.82ms | Module::Implementation::build_loader_sub( # spent 1.80ms making 1 call to Module::Implementation::__ANON__[Module/Implementation.pm:47]
# spent 22µs making 1 call to Module::Implementation::build_loader_sub |
| 22 | implementations => [ 'XS', 'PP' ], | ||||
| 23 | symbols => [ 'on_scope_end' ], | ||||
| 24 | )->(); | ||||
| 25 | 1 | 1µs | 1 | 2µs | Module::Implementation::implementation_for('B::Hooks::EndOfScope'); # spent 2µs making 1 call to Module::Implementation::implementation_for |
| 26 | }; | ||||
| 27 | |||||
| 28 | 1 | 3µs | *on_scope_end = $impl eq 'XS' | ||
| 29 | ? \&B::Hooks::EndOfScope::XS::on_scope_end | ||||
| 30 | : \&B::Hooks::EndOfScope::PP::on_scope_end | ||||
| 31 | ; | ||||
| 32 | 1 | 34µs | 1 | 1.84ms | } # spent 1.84ms making 1 call to B::Hooks::EndOfScope::BEGIN@18 |
| 33 | |||||
| 34 | 1 | 300ns | # spent 60µs (9+51) within B::Hooks::EndOfScope::BEGIN@34 which was called:
# once (9µs+51µs) by namespace::autoclean::BEGIN@14 at line 37 | ||
| 35 | exports => [ 'on_scope_end' ], | ||||
| 36 | groups => { default => ['on_scope_end'] }, | ||||
| 37 | 1 | 29µs | 2 | 111µs | }; # spent 60µs making 1 call to B::Hooks::EndOfScope::BEGIN@34
# spent 51µs making 1 call to Sub::Exporter::Progressive::import |
| 38 | |||||
| 39 | |||||
| 40 | 1 | 2µs | 1; | ||
| 41 | |||||
| 42 | __END__ |