← Index
NYTProf Performance Profile   « line view »
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 13:50:58 2016
Reported on Fri Jan 8 13:51:28 2016

Filename/usr/share/perl5/Import/Into.pm
StatementsExecuted 36 statements in 595µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
211176µs203µsImport::Into::::_make_actionImport::Into::_make_action
21124µs27µsImport::Into::::_preludeImport::Into::_prelude
21118µs318µsimport::::into import::into
11114µs20µsImport::Into::::BEGIN@3Import::Into::BEGIN@3
11111µs16µsImport::Into::::BEGIN@5Import::Into::BEGIN@5
11110µs18µsImport::Into::::BEGIN@4Import::Into::BEGIN@4
2112µs2µsImport::Into::::CORE:matchImport::Into::CORE:match (opcode)
0000s0sunimport::::out_of unimport::out_of
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Import::Into;
2
3240µs226µs
# spent 20µs (14+6) within Import::Into::BEGIN@3 which was called: # once (14µs+6µs) by Moo::BEGIN@5 at line 3
use strict;
# spent 20µs making 1 call to Import::Into::BEGIN@3 # spent 6µs making 1 call to strict::import
4236µs226µs
# spent 18µs (10+8) within Import::Into::BEGIN@4 which was called: # once (10µs+8µs) by Moo::BEGIN@5 at line 4
use warnings FATAL => 'all';
# spent 18µs making 1 call to Import::Into::BEGIN@4 # spent 8µs making 1 call to warnings::import
52304µs220µs
# spent 16µs (11+5) within Import::Into::BEGIN@5 which was called: # once (11µs+5µs) by Moo::BEGIN@5 at line 5
use Module::Runtime;
# spent 16µs making 1 call to Import::Into::BEGIN@5 # spent 5µs making 1 call to Module::Runtime::import
6
71500nsour $VERSION = '1.002004';
8
9
# spent 27µs (24+2) within Import::Into::_prelude which was called 2 times, avg 13µs/call: # 2 times (24µs+2µs) by Import::Into::_make_action at line 29, avg 13µs/call
sub _prelude {
102500ns my $target = shift;
11 my ($package, $file, $line, $level)
12210µs22µs = ref $target ? @{$target}{qw(package filename line)}
# spent 2µs making 2 calls to Import::Into::CORE:match, avg 1µs/call
13 : $target =~ /[^0-9]/ ? ($target)
14 : (undef, undef, undef, $target);
1521µs if (defined $level) {
1627µs my ($p, $fn, $ln) = caller($level + 2);
172800ns $package ||= $p;
182400ns $file ||= $fn;
1921µs $line ||= $ln;
20 }
21 qq{package $package;\n}
2228µs . ($file ? "#line $line \"$file\"\n" : '')
23}
24
25
# spent 203µs (176+27) within Import::Into::_make_action which was called 2 times, avg 101µs/call: # 2 times (176µs+27µs) by import::into at line 36, avg 101µs/call
sub _make_action {
262900ns my ($action, $target) = @_;
272900ns my $version = ref $target && $target->{version};
282800ns my $ver_check = $version ? ', $version' : '';
292167µs227µs eval _prelude($target)
# spent 27µs making 2 calls to Import::Into::_prelude, avg 13µs/call
30 . qq{sub { Module::Runtime::use_module( shift$ver_check )->$action(\@_) }}
31 or die "Failed to build action sub to ${action} for ${target}: $@";
32}
33
34
# spent 318µs (18+299) within import::into which was called 2 times, avg 159µs/call: # 2 times (18µs+299µs) by Moo::import at line 24 of Moo.pm, avg 159µs/call
sub import::into {
3521µs my ($class, $target, @args) = @_;
36212µs4299µs _make_action(import => $target)->($class, @args);
# spent 203µs making 2 calls to Import::Into::_make_action, avg 101µs/call # spent 52µs making 1 call to DBIx::Class::Storage::BlockRunner::__ANON__[DBIx/Class/Storage/BlockRunner.pm:29] # spent 45µs making 1 call to Method::Generate::Constructor::__ANON__[Method/Generate/Constructor.pm:202]
37}
38
39sub unimport::out_of {
40 my ($class, $target, @args) = @_;
41 _make_action(unimport => $target)->($class, @args);
42}
43
4413µs1;
45
46__END__
 
# spent 2µs within Import::Into::CORE:match which was called 2 times, avg 1µs/call: # 2 times (2µs+0s) by Import::Into::_prelude at line 12, avg 1µs/call
sub Import::Into::CORE:match; # opcode