← 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 14:31:06 2016
Reported on Fri Jan 8 14:33:27 2016

Filename/usr/share/perl5/DBIx/Class/AccessorGroup.pm
StatementsExecuted 704 statements in 1.50ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
991118.50ms26.1msDBIx::Class::AccessorGroup::::get_component_classDBIx::Class::AccessorGroup::get_component_class
51149µs89µsDBIx::Class::AccessorGroup::::set_component_classDBIx::Class::AccessorGroup::set_component_class
11114µs22µsDBIx::Class::AccessorGroup::::BEGIN@3DBIx::Class::AccessorGroup::BEGIN@3
11112µs50µsDBIx::Class::AccessorGroup::::BEGIN@7DBIx::Class::AccessorGroup::BEGIN@7
11110µs12.3msDBIx::Class::AccessorGroup::::BEGIN@6DBIx::Class::AccessorGroup::BEGIN@6
11110µs16µsDBIx::Class::AccessorGroup::::BEGIN@21DBIx::Class::AccessorGroup::BEGIN@21
1119µs129µsDBIx::Class::AccessorGroup::::BEGIN@8DBIx::Class::AccessorGroup::BEGIN@8
1119µs18µsDBIx::Class::AccessorGroup::::BEGIN@4DBIx::Class::AccessorGroup::BEGIN@4
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package DBIx::Class::AccessorGroup;
2
3230µs
# spent 22µs (14+8) within DBIx::Class::AccessorGroup::BEGIN@3 which was called: # once (14µs+8µs) by base::import at line 3
use strict;
# spent 22µs making 1 call to DBIx::Class::AccessorGroup::BEGIN@3 # spent 8µs making 1 call to strict::import
4226µs
# spent 18µs (9+9) within DBIx::Class::AccessorGroup::BEGIN@4 which was called: # once (9µs+9µs) by base::import at line 4
use warnings;
# spent 18µs making 1 call to DBIx::Class::AccessorGroup::BEGIN@4 # spent 9µs making 1 call to warnings::import
5
6212.3ms
# spent 12.3ms (10µs+12.3) within DBIx::Class::AccessorGroup::BEGIN@6 which was called: # once (10µs+12.3ms) by base::import at line 6
use base qw/Class::Accessor::Grouped/;
# spent 12.3ms making 1 call to DBIx::Class::AccessorGroup::BEGIN@6 # spent 12.3ms making 1 call to base::import, recursion: max depth 3, sum of overlapping time 12.3ms
7287µs
# spent 50µs (12+37) within DBIx::Class::AccessorGroup::BEGIN@7 which was called: # once (12µs+37µs) by base::import at line 7
use Scalar::Util qw/weaken blessed/;
# spent 50µs making 1 call to DBIx::Class::AccessorGroup::BEGIN@7 # spent 37µs making 1 call to Exporter::import
82250µs
# spent 129µs (9+120) within DBIx::Class::AccessorGroup::BEGIN@8 which was called: # once (9µs+120µs) by base::import at line 8
use namespace::clean;
# spent 129µs making 1 call to DBIx::Class::AccessorGroup::BEGIN@8 # spent 120µs making 1 call to namespace::clean::import
9
10my $successfully_loaded_components;
11
12
# spent 26.1ms (8.50+17.6) within DBIx::Class::AccessorGroup::get_component_class which was called 991 times, avg 26µs/call: # 991 times (8.50ms+17.6ms) by DBIx::Class::ResultSource::result_class or DBIx::Class::ResultSource::resultset_class or DBIx::Class::Storage::DBI::sql_maker_class or DBIx::Class::Storage::cursor_class at line 2 of (eval 171)[Class/Accessor/Grouped.pm:764], avg 26µs/call
sub get_component_class {
13176318µs9914.87ms my $class = $_[0]->get_inherited($_[1]);
# spent 4.87ms making 991 calls to Class::Accessor::Grouped::get_inherited, avg 5µs/call
14
15 # It's already an object, just go for it.
16176460µs991623µs return $class if blessed $class;
# spent 623µs making 991 calls to Scalar::Util::blessed, avg 629ns/call
17
18176207µs if (defined $class and ! $successfully_loaded_components->{$class} ) {
1917711.9ms $_[0]->ensure_class_loaded($class);
# spent 11.9ms making 177 calls to Class::C3::Componentised::ensure_class_loaded, avg 67µs/call
20
21222µs
# spent 16µs (10+6) within DBIx::Class::AccessorGroup::BEGIN@21 which was called: # once (10µs+6µs) by base::import at line 21
no strict 'refs';
# spent 16µs making 1 call to DBIx::Class::AccessorGroup::BEGIN@21 # spent 6µs making 1 call to strict::unimport
22 $successfully_loaded_components->{$class}
23 = ${"${class}::__LOADED__BY__DBIC__CAG__COMPONENT_CLASS__"}
24 = do { \(my $anon = 'loaded') };
25177177µs weaken($successfully_loaded_components->{$class});
# spent 177µs making 177 calls to Scalar::Util::weaken, avg 998ns/call
26 }
27
28176513µs $class;
29};
30
31
# spent 89µs (49+39) within DBIx::Class::AccessorGroup::set_component_class which was called 5 times, avg 18µs/call: # 5 times (49µs+39µs) by DBIx::Class::Storage::DBI::datetime_parser_type or DBIx::Class::Storage::DBI::sql_maker_class or DBIx::Class::Storage::cursor_class at line 2 of (eval 171)[Class/Accessor/Grouped.pm:764], avg 18µs/call
sub set_component_class {
32539µs shift->set_inherited(@_);
# spent 39µs making 5 calls to Class::Accessor::Grouped::set_inherited, avg 8µs/call
33}
34
351;
36
37=head1 NAME
38
39DBIx::Class::AccessorGroup - See Class::Accessor::Grouped
40
41=head1 SYNOPSIS
42
43=head1 DESCRIPTION
44
45This class now exists in its own right on CPAN as Class::Accessor::Grouped
46
47=head1 FURTHER QUESTIONS?
48
49Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
50
51=head1 COPYRIGHT AND LICENSE
52
53This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
54by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
55redistribute it and/or modify it under the same terms as the
56L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.
57
58183µs=cut
# spent 83µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__