| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/KiokuDB/TypeMap/Shadow.pm |
| Statements | Executed 10 statements in 781µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 73µs | 21.9ms | KiokuDB::TypeMap::Shadow::BEGIN@4 |
| 1 | 1 | 1 | 47µs | 1.56ms | KiokuDB::TypeMap::Shadow::BEGIN@6 |
| 0 | 0 | 0 | 0s | 0s | KiokuDB::TypeMap::Shadow::resolve |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | #!/usr/bin/perl | ||||
| 2 | |||||
| 3 | package KiokuDB::TypeMap::Shadow; | ||||
| 4 | 3 | 177µs | 2 | 43.7ms | # spent 21.9ms (73µs+21.8) within KiokuDB::TypeMap::Shadow::BEGIN@4 which was called:
# once (73µs+21.8ms) by KiokuDB::BEGIN@15 at line 4 # spent 21.9ms making 1 call to KiokuDB::TypeMap::Shadow::BEGIN@4
# spent 21.8ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 5 | |||||
| 6 | 3 | 454µs | 2 | 3.07ms | # spent 1.56ms (47µs+1.51) within KiokuDB::TypeMap::Shadow::BEGIN@6 which was called:
# once (47µs+1.51ms) by KiokuDB::BEGIN@15 at line 6 # spent 1.56ms making 1 call to KiokuDB::TypeMap::Shadow::BEGIN@6
# spent 1.51ms making 1 call to namespace::clean::import |
| 7 | |||||
| 8 | 1 | 14µs | 1 | 4.23ms | with qw(KiokuDB::Role::TypeMap); # spent 4.23ms making 1 call to Moose::with |
| 9 | |||||
| 10 | 1 | 17µs | 1 | 12.3ms | has typemaps => ( # spent 12.3ms making 1 call to Moose::has |
| 11 | does => "ArrayRef[KiokuDB::Role::TypeMap]", | ||||
| 12 | is => "ro", | ||||
| 13 | required => 1, | ||||
| 14 | ); | ||||
| 15 | |||||
| 16 | sub resolve { | ||||
| 17 | my ( $self, @args ) = @_; | ||||
| 18 | |||||
| 19 | foreach my $typemap ( @{ $self->typemaps } ) { | ||||
| 20 | if ( my $entry = $typemap->resolve(@args) ) { | ||||
| 21 | return $entry; | ||||
| 22 | } | ||||
| 23 | } | ||||
| 24 | |||||
| 25 | return; | ||||
| 26 | } | ||||
| 27 | |||||
| 28 | 1 | 24µs | 2 | 12.5ms | __PACKAGE__->meta->make_immutable; # spent 12.4ms making 1 call to Class::MOP::Class::make_immutable
# spent 102µs making 1 call to KiokuDB::TypeMap::Shadow::meta |
| 29 | |||||
| 30 | 1 | 61µs | __PACKAGE__ | ||
| 31 | |||||
| 32 | 1 | 34µs | 1 | 4.32ms | __END__ # spent 4.32ms making 1 call to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:26] |