| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/B/Hooks/EndOfScope.pm |
| Statements | Executed 388 statements in 8.82ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 2.32ms | 4.14ms | B::Hooks::EndOfScope::BEGIN@14 |
| 46 | 1 | 1 | 2.21ms | 4.28ms | B::Hooks::EndOfScope::on_scope_end |
| 46 | 46 | 46 | 2.10ms | 270ms | B::Hooks::EndOfScope::__ANON__[:26] |
| 46 | 1 | 1 | 510µs | 510µs | B::Hooks::EndOfScope::__ANON__[:25] |
| 1 | 1 | 1 | 80µs | 99µs | namespace::clean::BEGIN@1 |
| 1 | 1 | 1 | 74µs | 2.87ms | B::Hooks::EndOfScope::BEGIN@16 |
| 1 | 1 | 1 | 73µs | 73µs | B::Hooks::EndOfScope::BEGIN@13 |
| 1 | 1 | 1 | 42µs | 111µs | namespace::clean::BEGIN@2.2 |
| 1 | 1 | 1 | 18µs | 18µs | B::Hooks::EndOfScope::BEGIN@5 |
| 1 | 1 | 1 | 16µs | 16µs | B::Hooks::EndOfScope::BEGIN@8 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 3 | 103µs | 2 | 118µs | # spent 99µs (80+19) within namespace::clean::BEGIN@1 which was called:
# once (80µs+19µs) by namespace::clean::BEGIN@17 at line 1 # spent 99µs making 1 call to namespace::clean::BEGIN@1
# spent 19µs making 1 call to strict::import |
| 2 | 3 | 190µs | 2 | 179µs | # spent 111µs (42+69) within namespace::clean::BEGIN@2.2 which was called:
# once (42µs+69µs) by namespace::clean::BEGIN@17 at line 2 # spent 111µs making 1 call to namespace::clean::BEGIN@2.2
# spent 69µs making 1 call to warnings::import |
| 3 | |||||
| 4 | package B::Hooks::EndOfScope; | ||||
| 5 | # spent 18µs within B::Hooks::EndOfScope::BEGIN@5 which was called:
# once (18µs+0s) by namespace::clean::BEGIN@17 at line 7 | ||||
| 6 | 1 | 20µs | $B::Hooks::EndOfScope::AUTHORITY = 'cpan:FLORA'; | ||
| 7 | 1 | 82µs | 1 | 18µs | } # spent 18µs making 1 call to B::Hooks::EndOfScope::BEGIN@5 |
| 8 | # spent 16µs within B::Hooks::EndOfScope::BEGIN@8 which was called:
# once (16µs+0s) by namespace::clean::BEGIN@17 at line 10 | ||||
| 9 | 1 | 28µs | $B::Hooks::EndOfScope::VERSION = '0.09'; | ||
| 10 | 1 | 100µs | 1 | 16µs | } # spent 16µs making 1 call to B::Hooks::EndOfScope::BEGIN@8 |
| 11 | # ABSTRACT: Execute code after a scope finished compilation | ||||
| 12 | |||||
| 13 | 3 | 146µs | 1 | 73µs | # spent 73µs within B::Hooks::EndOfScope::BEGIN@13 which was called:
# once (73µs+0s) by namespace::clean::BEGIN@17 at line 13 # spent 73µs making 1 call to B::Hooks::EndOfScope::BEGIN@13 |
| 14 | 3 | 691µs | 3 | 4.31ms | # spent 4.14ms (2.32+1.82) within B::Hooks::EndOfScope::BEGIN@14 which was called:
# once (2.32ms+1.82ms) by namespace::clean::BEGIN@17 at line 14 # spent 4.14ms making 1 call to B::Hooks::EndOfScope::BEGIN@14
# spent 113µs making 1 call to Exporter::import
# spent 60µs making 1 call to UNIVERSAL::VERSION |
| 15 | |||||
| 16 | 1 | 2.80ms | # spent 2.87ms (74µs+2.80) within B::Hooks::EndOfScope::BEGIN@16 which was called:
# once (74µs+2.80ms) by namespace::clean::BEGIN@17 at line 19 # spent 2.80ms making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:756] | ||
| 17 | exports => ['on_scope_end'], | ||||
| 18 | groups => { default => ['on_scope_end'] }, | ||||
| 19 | 3 | 854µs | 1 | 2.87ms | }; # spent 2.87ms making 1 call to B::Hooks::EndOfScope::BEGIN@16 |
| 20 | |||||
| - - | |||||
| 23 | { | ||||
| 24 | 1 | 6µs | my $wiz = Variable::Magic::wizard | ||
| 25 | 46 | 729µs | # spent 510µs within B::Hooks::EndOfScope::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/B/Hooks/EndOfScope.pm:25] which was called 46 times, avg 11µs/call:
# 46 times (510µs+0s) by Variable::Magic::cast at line 37, avg 11µs/call | ||
| 26 | 139 | 2.31ms | 47 | 268ms | # spent 270ms (2.10+268) within B::Hooks::EndOfScope::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/B/Hooks/EndOfScope.pm:26] which was called 46 times, avg 5.87ms/call:
# once (46µs+30.3ms) by KiokuDB::LiveObjects::BEGIN@14 at line 59 of KiokuDB/LiveObjects/TXNScope.pm
# once (58µs+13.1ms) by KiokuDB::BEGIN@10 at line 61 of KiokuDB/Backend.pm
# once (85µs+11.4ms) by KiokuDB::BEGIN@13 at line 535 of KiokuDB/LiveObjects.pm
# once (49µs+9.79ms) by KiokuDB::Collapser::BEGIN@12 at line 308 of KiokuDB/Entry.pm
# once (67µs+8.16ms) by KiokuDB::TypeMap::BEGIN@9 at line 12 of KiokuDB/TypeMap/Entry.pm
# once (45µs+6.01ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 22 of KiokuDB/Role/UUIDs.pm
# once (47µs+5.92ms) by main::BEGIN@0 at line 659 of KiokuDB.pm
# once (47µs+5.86ms) by KiokuDB::BEGIN@11 at line 400 of KiokuDB/Collapser.pm
# once (41µs+5.80ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 14 of KiokuDB/Role/UUIDs/LibUUID.pm
# once (46µs+5.75ms) by KiokuDB::Collapser::BEGIN@18 at line 447 of Data/Visitor.pm
# once (48µs+5.61ms) by KiokuDB::BEGIN@12 at line 385 of KiokuDB/Linker.pm
# once (48µs+5.58ms) by KiokuDB::BEGIN@14 at line 175 of KiokuDB/TypeMap.pm
# once (47µs+5.42ms) by KiokuDB::TypeMap::Resolver::BEGIN@9 at line 488 of KiokuDB/TypeMap/Entry/MOP.pm
# once (41µs+5.18ms) by MooseX::Clone::BEGIN@13 at line 40 of MooseX/Clone/Meta/Attribute/Trait/Copy.pm
# once (43µs+5.17ms) by MooseX::Clone::BEGIN@11 at line 27 of MooseX/Clone/Meta/Attribute/Trait/StorableClone.pm
# once (44µs+5.16ms) by MooseX::Clone::BEGIN@10 at line 113 of MooseX/Clone/Meta/Attribute/Trait/Clone.pm
# once (44µs+5.13ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 63 of MooseX/Clone.pm
# once (43µs+4.98ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 14 of KiokuDB/TypeMap/Entry/Std/ID.pm
# once (47µs+4.96ms) by KiokuDB::LiveObjects::BEGIN@1 at line 354 of Devel/PartialDump.pm
# once (42µs+4.95ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 12 of KiokuDB/Role/TypeMap.pm
# once (44µs+4.94ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 82 of Data/Stream/Bulk.pm
# once (42µs+4.93ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 26 of MooseX/Clone/Meta/Attribute/Trait/Clone/Std.pm
# once (44µs+4.92ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 58 of KiokuDB/TypeMap/Entry/Std/Intrinsic.pm
# once (43µs+4.91ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 51 of KiokuDB/TypeMap/Entry/Std/Expand.pm
# once (41µs+4.91ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 20 of KiokuDB/TypeMap/Entry/Std.pm
# once (43µs+4.89ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 38 of KiokuDB/TypeMap/Entry/Std/Compile.pm
# once (42µs+4.88ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 14 of KiokuDB/Error.pm
# once (41µs+4.87ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 12 of MooseX/Clone/Meta/Attribute/Trait/Clone/Base.pm
# once (45µs+4.85ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 53 of KiokuDB/Role/API.pm
# once (42µs+4.86ms) by MooseX::Clone::BEGIN@12 at line 31 of MooseX/Clone/Meta/Attribute/Trait/NoClone.pm
# once (46µs+4.61ms) by KiokuDB::Collapser::BEGIN@15 at line 235 of KiokuDB/Collapser/Buffer.pm
# once (45µs+4.54ms) by KiokuDB::BEGIN@16 at line 121 of KiokuDB/TypeMap/Resolver.pm
# once (42µs+4.32ms) by KiokuDB::TypeMap::BEGIN@10 at line 18 of KiokuDB/TypeMap/Entry/Alias.pm
# once (43µs+4.30ms) by KiokuDB::LiveObjects::BEGIN@13 at line 64 of KiokuDB/LiveObjects/Scope.pm
# once (43µs+4.30ms) by KiokuDB::BEGIN@17 at line 83 of KiokuDB/Stream/Objects.pm
# once (46µs+4.29ms) by KiokuDB::Collapser::BEGIN@16 at line 31 of KiokuDB/Error/UnknownObjects.pm
# once (43µs+4.28ms) by KiokuDB::BEGIN@15 at line 32 of KiokuDB/TypeMap/Shadow.pm
# once (44µs+4.26ms) by KiokuDB::TypeMap::Entry::MOP::BEGIN@9 at line 55 of KiokuDB/Thunk.pm
# once (44µs+4.21ms) by KiokuDB::Linker::BEGIN@18 at line 43 of KiokuDB/Error/MissingObjects.pm
# once (45µs+4.21ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 40 of Data/Stream/Bulk/Nil.pm
# once (43µs+4.20ms) by KiokuDB::TypeMap::Entry::Std::BEGIN@6 at line 30 of KiokuDB/TypeMap/Entry/Compiled.pm
# once (44µs+4.17ms) by KiokuDB::Collapser::BEGIN@14 at line 43 of KiokuDB/Reference.pm
# once (44µs+4.16ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 58 of Data/Stream/Bulk/Cat.pm
# once (40µs+4.15ms) by Class::MOP::__ANON__[/home/doy/coding/src/Class-MOP/blib/lib//Class/MOP.pm:118] at line 43 of Data/Stream/Bulk/Filter.pm
# once (41µs+4.15ms) by KiokuDB::Collapser::BEGIN@13 at line 31 of KiokuDB/Entry/Skip.pm
# once (40µs+509µs) by KiokuDB::LiveObjects::BEGIN@7 at line 35 of KiokuDB/LiveObjects/Guard.pm # spent 268ms making 46 calls to namespace::clean::__ANON__[namespace/clean.pm:117], avg 5.82ms/call
# spent 222µs making 1 call to Variable::Magic::wizard |
| 27 | |||||
| 28 | # spent 4.28ms (2.21+2.07) within B::Hooks::EndOfScope::on_scope_end which was called 46 times, avg 93µs/call:
# 46 times (2.21ms+2.07ms) by namespace::clean::import at line 117 of namespace/clean.pm, avg 93µs/call | ||||
| 29 | 138 | 1.88ms | my $cb = shift; | ||
| 30 | |||||
| 31 | $^H |= 0x020000; | ||||
| 32 | |||||
| 33 | 46 | 907µs | 46 | 326µs | if (my $stack = Variable::Magic::getdata %^H, $wiz) { # spent 326µs making 46 calls to Variable::Magic::getdata, avg 7µs/call |
| 34 | push @{ $stack }, $cb; | ||||
| 35 | } | ||||
| 36 | else { | ||||
| 37 | 1 | 746µs | 92 | 2.25ms | Variable::Magic::cast %^H, $wiz, $cb; # spent 1.74ms making 46 calls to Variable::Magic::cast, avg 38µs/call
# spent 510µs making 46 calls to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:25], avg 11µs/call |
| 38 | } | ||||
| 39 | } | ||||
| 40 | } | ||||
| 41 | |||||
| 42 | |||||
| 43 | 1 | 23µs | 1; | ||
| 44 | |||||
| 45 | __END__ |