File | /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/ResultSourceProxy.pm | Statements Executed | 27870 | Total Time | 0.306723999999982 seconds |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine | |
---|---|---|---|---|---|---|
27739 | 2 | 2 | 0.20798 | 1.55370 | DBIx::Class::ResultSourceProxy:: | has_column |
5 | 5 | 5 | 0.00058 | 0.01491 | DBIx::Class::ResultSourceProxy:: | add_columns |
2 | 2 | 2 | 7.2e-5 | 0.00053 | DBIx::Class::ResultSourceProxy:: | add_relationship |
4 | 4 | 4 | 4.7e-5 | 0.00074 | DBIx::Class::ResultSourceProxy:: | set_primary_key |
1 | 1 | 1 | 3.7e-5 | 7.9e-5 | DBIx::Class::ResultSourceProxy:: | columns |
5 | 1 | 1 | 3.3e-5 | 0.00037 | DBIx::Class::ResultSourceProxy:: | get_inherited_ro_instance |
1 | 1 | 1 | 1.3e-5 | 7.9e-5 | DBIx::Class::ResultSourceProxy:: | primary_columns |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | BEGIN |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | add_unique_constraint |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | column_info |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | column_info_from_storage |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | iterator_class |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | relationship_info |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | relationships |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | remove_columns |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | result_class |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | resultset_attributes |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | resultset_class |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | set_inherited_ro_instance |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | source_info |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | unique_constraint_columns |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | unique_constraint_names |
0 | 0 | 0 | 0 | 0 | DBIx::Class::ResultSourceProxy:: | unique_constraints |
Line | Stmts. | Exclusive Time | Avg. | Code |
---|---|---|---|---|
1 | package # hide from PAUSE | |||
2 | DBIx::Class::ResultSourceProxy; | |||
3 | ||||
4 | 3 | 4.1e-5 | 1.4e-5 | use strict; # spent 10µs making 1 call to strict::import |
5 | 3 | 2.9e-5 | 9.7e-6 | use warnings; # spent 19µs making 1 call to warnings::import |
6 | ||||
7 | 3 | 2.9e-5 | 9.7e-6 | use base qw/DBIx::Class/; # spent 74µs making 1 call to base::import, max recursion depth 1 |
8 | 3 | 3.7e-5 | 1.2e-5 | use Scalar::Util qw/blessed/; # spent 63µs making 1 call to Exporter::import |
9 | 3 | 0.00072 | 0.00024 | use Carp::Clan qw/^DBIx::Class/; # spent 98µs making 1 call to Carp::Clan::import |
10 | ||||
11 | sub iterator_class { shift->result_source_instance->resultset_class(@_) } | |||
12 | sub resultset_class { shift->result_source_instance->resultset_class(@_) } | |||
13 | sub result_class { shift->result_source_instance->result_class(@_) } | |||
14 | sub source_info { shift->result_source_instance->source_info(@_) } | |||
15 | ||||
16 | sub set_inherited_ro_instance { | |||
17 | my $self = shift; | |||
18 | ||||
19 | croak "Cannot set @{[shift]} on an instance" if blessed $self; | |||
20 | ||||
21 | return $self->set_inherited(@_); | |||
22 | } | |||
23 | ||||
24 | # spent 374µs (33+341) within DBIx::Class::ResultSourceProxy::get_inherited_ro_instance which was called 5 times, avg 75µs/call:
# 5 times (33µs+341µs) at line 6 of (eval 90)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156] at line 156 of /wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm, avg 75µs/call | |||
25 | 5 | 2.8e-5 | 5.6e-6 | return shift->get_inherited(@_); # spent 341µs making 5 calls to Class::Accessor::Grouped::get_inherited, avg 68µs/call |
26 | } | |||
27 | ||||
28 | 1 | 1.5e-5 | 1.5e-5 | __PACKAGE__->mk_group_accessors('inherited_ro_instance' => 'source_name'); # spent 162µs making 1 call to Class::Accessor::Grouped::mk_group_accessors |
29 | ||||
30 | ||||
31 | sub resultset_attributes { | |||
32 | shift->result_source_instance->resultset_attributes(@_); | |||
33 | } | |||
34 | ||||
35 | # spent 14.9ms (582µs+14.3) within DBIx::Class::ResultSourceProxy::add_columns which was called 5 times, avg 2.98ms/call:
# once (304µs+9.21ms) at line 12 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/Frame.pm
# once (134µs+3.24ms) at line 12 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/Scan.pm
# once (53µs+1.01ms) at line 13 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/Tile.pm
# once (51µs+431µs) at line 11 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/MissionPlan.pm
# once (40µs+429µs) at line 12 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/HouseKeeping.pm | |||
36 | 20 | 0.00021 | 1.0e-5 | my ($class, @cols) = @_; |
37 | my $source = $class->result_source_instance; # spent 105µs making 5 calls to Class::Accessor::Grouped::__ANON__[(eval 0)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156]:8], avg 21µs/call | |||
38 | $source->add_columns(@cols); # spent 711µs making 5 calls to DBIx::Class::ResultSource::add_columns, avg 142µs/call | |||
39 | foreach my $c (grep { !ref } @cols) { | |||
40 | 73 | 0.00087 | 1.2e-5 | $class->register_column($c => $source->column_info($c)); # spent 10.0ms making 73 calls to DBIx::Class::Row::register_column, avg 137µs/call
# spent 3.48ms making 73 calls to DBIx::Class::ResultSource::column_info, avg 48µs/call |
41 | } | |||
42 | } | |||
43 | ||||
44 | 1 | 2.0e-6 | 2.0e-6 | *add_column = \&add_columns; |
45 | ||||
46 | # spent 1.55s (208ms+1.35) within DBIx::Class::ResultSourceProxy::has_column which was called 27739 times, avg 56µs/call:
# 27738 times (208ms+1.35s) by DBIx::Class::Row::get_column at line 374 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Row.pm, avg 56µs/call
# once (12µs+51µs) by DBIx::Class::Relationship::HasMany::has_many at line 35 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Relationship/HasMany.pm | |||
47 | 27739 | 0.30451 | 1.1e-5 | shift->result_source_instance->has_column(@_); # spent 765ms making 27739 calls to Class::Accessor::Grouped::__ANON__[(eval 0)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156]:8], avg 28µs/call
# spent 581ms making 27739 calls to DBIx::Class::ResultSource::has_column, avg 21µs/call |
48 | } | |||
49 | ||||
50 | sub column_info { | |||
51 | shift->result_source_instance->column_info(@_); | |||
52 | } | |||
53 | ||||
54 | sub column_info_from_storage { | |||
55 | shift->result_source_instance->column_info_from_storage(@_); | |||
56 | } | |||
57 | ||||
58 | # spent 79µs (37+42) within DBIx::Class::ResultSourceProxy::columns which was called
# once (37µs+42µs) by DBIx::Class::Relationship::HasMany::has_many at line 34 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Relationship/HasMany.pm | |||
59 | 1 | 4.0e-5 | 4.0e-5 | shift->result_source_instance->columns(@_); # spent 22µs making 1 call to Class::Accessor::Grouped::__ANON__[(eval 0)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156]:8]
# spent 20µs making 1 call to DBIx::Class::ResultSource::columns |
60 | } | |||
61 | ||||
62 | sub remove_columns { | |||
63 | shift->result_source_instance->remove_columns(@_); | |||
64 | } | |||
65 | ||||
66 | 1 | 0 | 0 | *remove_column = \&remove_columns; |
67 | ||||
68 | # spent 742µs (47+695) within DBIx::Class::ResultSourceProxy::set_primary_key which was called 4 times, avg 186µs/call:
# once (11µs+220µs) at line 77 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/Frame.pm
# once (14µs+189µs) at line 42 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/Scan.pm
# once (10µs+145µs) at line 15 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/MissionPlan.pm
# once (12µs+141µs) at line 16 of /wise/base/deliv/dev/lib/perl/WISE/DB/FrameIndex/HouseKeeping.pm | |||
69 | 4 | 6.6e-5 | 1.7e-5 | shift->result_source_instance->set_primary_key(@_); # spent 601µs making 4 calls to DBIx::Class::ResultSource::set_primary_key, avg 150µs/call
# spent 94µs making 4 calls to Class::Accessor::Grouped::__ANON__[(eval 0)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156]:8], avg 24µs/call |
70 | } | |||
71 | ||||
72 | # spent 79µs (13+66) within DBIx::Class::ResultSourceProxy::primary_columns which was called
# once (13µs+66µs) by DBIx::Class::Relationship::HasMany::has_many at line 12 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Relationship/HasMany.pm | |||
73 | 1 | 1.8e-5 | 1.8e-5 | shift->result_source_instance->primary_columns(@_); # spent 44µs making 1 call to Class::Accessor::Grouped::__ANON__[(eval 0)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156]:8]
# spent 22µs making 1 call to DBIx::Class::ResultSource::primary_columns |
74 | } | |||
75 | ||||
76 | sub add_unique_constraint { | |||
77 | shift->result_source_instance->add_unique_constraint(@_); | |||
78 | } | |||
79 | ||||
80 | sub unique_constraints { | |||
81 | shift->result_source_instance->unique_constraints(@_); | |||
82 | } | |||
83 | ||||
84 | sub unique_constraint_names { | |||
85 | shift->result_source_instance->unique_constraint_names(@_); | |||
86 | } | |||
87 | ||||
88 | sub unique_constraint_columns { | |||
89 | shift->result_source_instance->unique_constraint_columns(@_); | |||
90 | } | |||
91 | ||||
92 | # spent 531µs (72+459) within DBIx::Class::ResultSourceProxy::add_relationship which was called 2 times, avg 266µs/call:
# once (45µs+280µs) by DBIx::Class::Relationship::HasOne::_has_one at line 57 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Relationship/HasOne.pm
# once (27µs+179µs) by DBIx::Class::Relationship::HasMany::has_many at line 47 of /wise/base/static/lib/perl5/site_perl/5.10.0/DBIx/Class/Relationship/HasMany.pm | |||
93 | 8 | 9.9e-5 | 1.2e-5 | my ($class, $rel, @rest) = @_; |
94 | my $source = $class->result_source_instance; # spent 44µs making 2 calls to Class::Accessor::Grouped::__ANON__[(eval 0)[/wise/base/static/lib/perl5/site_perl/5.10.0/Class/Accessor/Grouped.pm:156]:8], avg 22µs/call | |||
95 | $source->add_relationship($rel => @rest); # spent 157µs making 2 calls to DBIx::Class::ResultSource::add_relationship, avg 79µs/call | |||
96 | $class->register_relationship($rel => $source->relationship_info($rel)); # spent 209µs making 2 calls to DBIx::Class::Relationship::Accessor::register_relationship, avg 104µs/call
# spent 49µs making 2 calls to DBIx::Class::ResultSource::relationship_info, avg 24µs/call | |||
97 | } | |||
98 | ||||
99 | sub relationships { | |||
100 | shift->result_source_instance->relationships(@_); | |||
101 | } | |||
102 | ||||
103 | sub relationship_info { | |||
104 | shift->result_source_instance->relationship_info(@_); | |||
105 | } | |||
106 | ||||
107 | 1 | 6.0e-6 | 6.0e-6 | 1; |