← 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:16:49 2016
Reported on Fri Jan 8 14:23:08 2016

Filename/home/vagrant/kohaclone/Koha/Schema/Result/Course.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11134µs38µsClass::C3::Componentised::::BEGIN@1.1160 Class::C3::Componentised::BEGIN@1.1160
11111µs22µsKoha::Schema::Result::Course::::BEGIN@13Koha::Schema::Result::Course::BEGIN@13
11110µs19µsKoha::Schema::Result::Course::::BEGIN@14Koha::Schema::Result::Course::BEGIN@14
11110µs90µsKoha::Schema::Result::Course::::BEGIN@16Koha::Schema::Result::Course::BEGIN@16
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1243µs
# spent 38µs (34+4) within Class::C3::Componentised::BEGIN@1.1160 which was called: # once (34µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1
use utf8;
# spent 38µs making 1 call to Class::C3::Componentised::BEGIN@1.1160 # spent 4µs making 1 call to utf8::import
2package Koha::Schema::Result::Course;
3
4# Created by DBIx::Class::Schema::Loader
5# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7=head1 NAME
8
9Koha::Schema::Result::Course
10
11=cut
12
13234µs
# spent 22µs (11+12) within Koha::Schema::Result::Course::BEGIN@13 which was called: # once (11µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13
use strict;
# spent 22µs making 1 call to Koha::Schema::Result::Course::BEGIN@13 # spent 12µs making 1 call to strict::import
14228µs
# spent 19µs (10+9) within Koha::Schema::Result::Course::BEGIN@14 which was called: # once (10µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14
use warnings;
# spent 19µs making 1 call to Koha::Schema::Result::Course::BEGIN@14 # spent 9µs making 1 call to warnings::import
15
162171µs
# spent 90µs (10+80) within Koha::Schema::Result::Course::BEGIN@16 which was called: # once (10µs+80µs) by Class::C3::Componentised::ensure_class_loaded at line 16
use base 'DBIx::Class::Core';
# spent 90µs making 1 call to Koha::Schema::Result::Course::BEGIN@16 # spent 80µs making 1 call to base::import
17
18=head1 TABLE: C<courses>
19
20=cut
21
221351µs__PACKAGE__->table("courses");
# spent 351µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
23
24=head1 ACCESSORS
25
26=head2 course_id
27
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31
32=head2 department
33
34 data_type: 'varchar'
35 is_nullable: 1
36 size: 80
37
38=head2 course_number
39
40 data_type: 'varchar'
41 is_nullable: 1
42 size: 255
43
44=head2 section
45
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 255
49
50=head2 course_name
51
52 data_type: 'varchar'
53 is_nullable: 1
54 size: 255
55
56=head2 term
57
58 data_type: 'varchar'
59 is_nullable: 1
60 size: 80
61
62=head2 staff_note
63
64 data_type: 'mediumtext'
65 is_nullable: 1
66
67=head2 public_note
68
69 data_type: 'mediumtext'
70 is_nullable: 1
71
72=head2 students_count
73
74 data_type: 'varchar'
75 is_nullable: 1
76 size: 20
77
78=head2 enabled
79
80 data_type: 'enum'
81 default_value: 'yes'
82 extra: {list => ["yes","no"]}
83 is_nullable: 0
84
85=head2 timestamp
86
87 data_type: 'timestamp'
88 datetime_undef_if_invalid: 1
89 default_value: current_timestamp
90 is_nullable: 0
91
92=cut
93
9414.24ms__PACKAGE__->add_columns(
# spent 4.24ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
95 "course_id",
96 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
97 "department",
98 { data_type => "varchar", is_nullable => 1, size => 80 },
99 "course_number",
100 { data_type => "varchar", is_nullable => 1, size => 255 },
101 "section",
102 { data_type => "varchar", is_nullable => 1, size => 255 },
103 "course_name",
104 { data_type => "varchar", is_nullable => 1, size => 255 },
105 "term",
106 { data_type => "varchar", is_nullable => 1, size => 80 },
107 "staff_note",
108 { data_type => "mediumtext", is_nullable => 1 },
109 "public_note",
110 { data_type => "mediumtext", is_nullable => 1 },
111 "students_count",
112 { data_type => "varchar", is_nullable => 1, size => 20 },
113 "enabled",
114 {
115 data_type => "enum",
116 default_value => "yes",
117 extra => { list => ["yes", "no"] },
118 is_nullable => 0,
119 },
120 "timestamp",
121 {
122 data_type => "timestamp",
123 datetime_undef_if_invalid => 1,
124 default_value => \"current_timestamp",
125 is_nullable => 0,
126 },
127);
128
129=head1 PRIMARY KEY
130
131=over 4
132
133=item * L</course_id>
134
135=back
136
137=cut
138
139191µs__PACKAGE__->set_primary_key("course_id");
# spent 91µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
140
141=head1 RELATIONS
142
143=head2 course_instructors
144
145Type: has_many
146
147Related object: L<Koha::Schema::Result::CourseInstructor>
148
149=cut
150
1511355µs__PACKAGE__->has_many(
# spent 355µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
152 "course_instructors",
153 "Koha::Schema::Result::CourseInstructor",
154 { "foreign.course_id" => "self.course_id" },
155 { cascade_copy => 0, cascade_delete => 0 },
156);
157
158=head2 course_reserves
159
160Type: has_many
161
162Related object: L<Koha::Schema::Result::CourseReserve>
163
164=cut
165
1661244µs__PACKAGE__->has_many(
# spent 244µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
167 "course_reserves",
168 "Koha::Schema::Result::CourseReserve",
169 { "foreign.course_id" => "self.course_id" },
170 { cascade_copy => 0, cascade_delete => 0 },
171);
172
173=head2 borrowernumbers
174
175Type: many_to_many
176
177Composing rels: L</course_instructors> -> borrowernumber
178
179=cut
180
1811142µs__PACKAGE__->many_to_many("borrowernumbers", "course_instructors", "borrowernumber");
# spent 142µs making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many
182
183
184# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
185# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:crKCFQ80qo2p885ebiBfnw
186
187
188# You can replace this text with custom content, and it will be preserved on regeneration
1891;