← 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:01:18 2016
Reported on Fri Jan 8 13:01:34 2016

Filename/usr/lib/x86_64-linux-gnu/perl5/5.20/Class/XSAccessor/Heavy.pm
StatementsExecuted 15 statements in 696µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11138µs50µsClass::XSAccessor::Heavy::::BEGIN@27Class::XSAccessor::Heavy::BEGIN@27
11122µs22µsClass::XSAccessor::Heavy::::BEGIN@4Class::XSAccessor::Heavy::BEGIN@4
11113µs35µsClass::XSAccessor::Heavy::::BEGIN@30Class::XSAccessor::Heavy::BEGIN@30
11112µs24µsClass::XSAccessor::Heavy::::BEGIN@5Class::XSAccessor::Heavy::BEGIN@5
11112µs50µsClass::XSAccessor::Heavy::::BEGIN@7Class::XSAccessor::Heavy::BEGIN@7
11111µs19µsClass::XSAccessor::Heavy::::BEGIN@6Class::XSAccessor::Heavy::BEGIN@6
0000s0sClass::XSAccessor::Heavy::::check_sub_existenceClass::XSAccessor::Heavy::check_sub_existence
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package # hide from PAUSE
2 Class::XSAccessor::Heavy;
3
4262µs122µs
# spent 22µs within Class::XSAccessor::Heavy::BEGIN@4 which was called: # once (22µs+0s) by Class::XSAccessor::BEGIN@6 at line 4
use 5.008;
# spent 22µs making 1 call to Class::XSAccessor::Heavy::BEGIN@4
5258µs236µs
# spent 24µs (12+12) within Class::XSAccessor::Heavy::BEGIN@5 which was called: # once (12µs+12µs) by Class::XSAccessor::BEGIN@6 at line 5
use strict;
# spent 24µs making 1 call to Class::XSAccessor::Heavy::BEGIN@5 # spent 12µs making 1 call to strict::import
6242µs226µs
# spent 19µs (11+8) within Class::XSAccessor::Heavy::BEGIN@6 which was called: # once (11µs+8µs) by Class::XSAccessor::BEGIN@6 at line 6
use warnings;
# spent 19µs making 1 call to Class::XSAccessor::Heavy::BEGIN@6 # spent 8µs making 1 call to warnings::import
72228µs288µs
# spent 50µs (12+38) within Class::XSAccessor::Heavy::BEGIN@7 which was called: # once (12µs+38µs) by Class::XSAccessor::BEGIN@6 at line 7
use Carp;
# spent 50µs making 1 call to Class::XSAccessor::Heavy::BEGIN@7 # spent 38µs making 1 call to Exporter::import
8
91600nsour $VERSION = '1.19';
1012µsour @CARP_NOT = qw(
11 Class::XSAccessor
12 Class::XSAccessor::Array
13);
14
15# TODO Move more duplicated code from XSA and XSA::Array here
16
17
18sub check_sub_existence {
19 my $subname = shift;
20
21 my $sub_package = $subname;
22 $sub_package =~ s/([^:]+)$// or die;
23 my $bare_subname = $1;
24
25 my $sym;
26 {
272100µs261µs
# spent 50µs (38+12) within Class::XSAccessor::Heavy::BEGIN@27 which was called: # once (38µs+12µs) by Class::XSAccessor::BEGIN@6 at line 27
no strict 'refs';
# spent 50µs making 1 call to Class::XSAccessor::Heavy::BEGIN@27 # spent 12µs making 1 call to strict::unimport
28 $sym = \%{"$sub_package"};
29 }
302198µs257µs
# spent 35µs (13+22) within Class::XSAccessor::Heavy::BEGIN@30 which was called: # once (13µs+22µs) by Class::XSAccessor::BEGIN@6 at line 30
no warnings;
# spent 35µs making 1 call to Class::XSAccessor::Heavy::BEGIN@30 # spent 22µs making 1 call to warnings::unimport
31 local *s = $sym->{$bare_subname};
32 my $coderef = *s{CODE};
33 if ($coderef) {
34 $sub_package =~ s/::$//;
35 Carp::croak("Cannot replace existing subroutine '$bare_subname' in package '$sub_package' with an XS implementation. If you wish to force a replacement, add the 'replace => 1' parameter to the arguments of 'use ".(caller())[0]."'.");
36 }
37}
38
3914µs1;
40
41__END__