← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/getfix
  Run on Thu May 20 15:30:03 2010
Reported on Thu May 20 16:25:29 2010

File/wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Componentised.pm
Statements Executed217
Total Time0.001828 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
9110.001630.00303DBIx::Class::Componentised::inject_base
1113.1e-50.00543DBIx::Class::Componentised::load_optional_class
00000DBIx::Class::Componentised::BEGIN

LineStmts.Exclusive
Time
Avg.Code
1package # hide from PAUSE
2 DBIx::Class::Componentised;
3
433.0e-51.0e-5use strict;
# spent 11µs making 1 call to strict::import
533.1e-51.0e-5use warnings;
# spent 25µs making 1 call to warnings::import
6
733.5e-51.2e-5use base 'Class::C3::Componentised';
# spent 10.7ms making 1 call to base::import, max recursion depth 3
834.8e-51.6e-5use Carp::Clan qw/^DBIx::Class/;
# spent 117µs making 1 call to Carp::Clan::import
9
10
# spent 3.03ms (1.63+1.40) within DBIx::Class::Componentised::inject_base which was called 9 times, avg 337µs/call: # 9 times (1.63ms+1.40ms) by Class::C3::Componentised::_load_components at line 83 of /wise/base/static/lib/perl5/site_perl/5.10.0/Class/C3/Componentised.pm, avg 337µs/call
sub inject_base {
11270.000114.3e-6 my ($class, $target, @to_inject) = @_;
12 {
1330.000186.1e-5 no strict 'refs';
# spent 18µs making 1 call to strict::unimport
1491.5e-51.7e-6 foreach my $to (reverse @to_inject) {
15690.001011.5e-5 my @comps = qw(DigestColumns ResultSetManager Ordered UTF8Columns);
16 # Add components here that need to be loaded before Core
17 foreach my $first_comp (@comps) {
18920.000323.5e-6 if ($to eq 'DBIx::Class::Core' &&
# spent 147µs making 20 calls to UNIVERSAL::isa, avg 7µs/call
19 $target->isa("DBIx::Class::${first_comp}")) {
20 warn "Possible incorrect order of components in ".
21 "${target}::load_components($first_comp) call: Core loaded ".
22 "before $first_comp. See the documentation for ".
23 "DBIx::Class::$first_comp for more information";
24 }
25 }
26 unshift( @{"${target}::ISA"}, $to )
# spent 237µs making 23 calls to UNIVERSAL::isa, avg 10µs/call
27 unless ($target eq $to || $target->isa($to));
28 }
29 }
30
31 $class->next::method($target, @to_inject);
# spent 599µs making 9 calls to next::method, avg 67µs/call
32}
33
34# Returns a true value if the specified class is installed and loaded
35# successfully, throws an exception if the class is found but not loaded
36# successfully, and false if the class is not installed
37
# spent 5.42ms (31µs+5.39) within DBIx::Class::Componentised::load_optional_class which was called # once (31µs+5.39ms) by DBIx::Class::Storage::DBI::_populate_dbh at line 777 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Storage/DBI.pm
sub load_optional_class {
3821.8e-59.0e-6 my ($class, $f_class) = @_;
3921.8e-59.0e-6 if ($class->ensure_class_found($f_class)) {
# spent 336µs making 1 call to Class::C3::Componentised::ensure_class_found
40 $class->ensure_class_loaded($f_class);
# spent 5.06ms making 1 call to Class::C3::Componentised::ensure_class_loaded
41 return 1;
42 } else {
43 return 0;
44 }
45}
46
4713.0e-63.0e-61;