← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:42:38 2010
Reported on Wed Nov 17 22:04:56 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/KiokuDB/TypeMap/Shadow.pm
StatementsExecuted 10 statements in 781µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11173µs21.9msKiokuDB::TypeMap::Shadow::::BEGIN@4KiokuDB::TypeMap::Shadow::BEGIN@4
11147µs1.56msKiokuDB::TypeMap::Shadow::::BEGIN@6KiokuDB::TypeMap::Shadow::BEGIN@6
0000s0sKiokuDB::TypeMap::Shadow::::resolveKiokuDB::TypeMap::Shadow::resolve
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#!/usr/bin/perl
2
3package KiokuDB::TypeMap::Shadow;
43177µs243.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
use Moose;
# 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
63454µs23.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
use namespace::clean -except => 'meta';
# spent 1.56ms making 1 call to KiokuDB::TypeMap::Shadow::BEGIN@6 # spent 1.51ms making 1 call to namespace::clean::import
7
8114µs14.23mswith qw(KiokuDB::Role::TypeMap);
# spent 4.23ms making 1 call to Moose::with
9
10117µs112.3mshas typemaps => (
# spent 12.3ms making 1 call to Moose::has
11 does => "ArrayRef[KiokuDB::Role::TypeMap]",
12 is => "ro",
13 required => 1,
14);
15
16sub 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
28124µs212.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
30161µs__PACKAGE__
31
32134µs14.32ms__END__