← 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:30 2016

Filename/home/vagrant/kohaclone/Koha/Template/Plugin/AudioAlerts.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11128µs114µsKoha::Template::Plugin::AudioAlerts::::BEGIN@20Koha::Template::Plugin::AudioAlerts::BEGIN@20
11121µs76µsKoha::Template::Plugin::AudioAlerts::::BEGIN@25Koha::Template::Plugin::AudioAlerts::BEGIN@25
11115µs18µsKoha::Template::Plugin::AudioAlerts::::BEGIN@27Koha::Template::Plugin::AudioAlerts::BEGIN@27
11113µs45µsKoha::Template::Plugin::AudioAlerts::::BEGIN@22Koha::Template::Plugin::AudioAlerts::BEGIN@22
11110µs101µsKoha::Template::Plugin::AudioAlerts::::BEGIN@23Koha::Template::Plugin::AudioAlerts::BEGIN@23
1116µs6µsKoha::Template::Plugin::AudioAlerts::::BEGIN@28Koha::Template::Plugin::AudioAlerts::BEGIN@28
0000s0sKoha::Template::Plugin::AudioAlerts::::AudioAlertsKoha::Template::Plugin::AudioAlerts::AudioAlerts
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Koha::Template::Plugin::AudioAlerts;
2
3# Copyright ByWater Solutions 2013
4
5# This file is part of Koha.
6#
7# Koha is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or
10# (at your option) any later version.
11#
12# Koha is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
202199µs
# spent 114µs (28+85) within Koha::Template::Plugin::AudioAlerts::BEGIN@20 which was called: # once (28µs+85µs) by Template::Plugins::_load at line 20
use Modern::Perl;
# spent 114µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@20 # spent 86µs making 1 call to Modern::Perl::import
21
22277µs
# spent 45µs (13+32) within Koha::Template::Plugin::AudioAlerts::BEGIN@22 which was called: # once (13µs+32µs) by Template::Plugins::_load at line 22
use Encode qw( encode );
# spent 45µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@22 # spent 32µs making 1 call to Exporter::import
232191µs
# spent 101µs (10+90) within Koha::Template::Plugin::AudioAlerts::BEGIN@23 which was called: # once (10µs+90µs) by Template::Plugins::_load at line 23
use JSON;
# spent 101µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@23 # spent 90µs making 1 call to JSON::import
24
252130µs
# spent 76µs (21+55) within Koha::Template::Plugin::AudioAlerts::BEGIN@25 which was called: # once (21µs+55µs) by Template::Plugins::_load at line 25
use base qw( Template::Plugin );
# spent 76µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@25 # spent 55µs making 1 call to base::import
26
27221µs
# spent 18µs (15+3) within Koha::Template::Plugin::AudioAlerts::BEGIN@27 which was called: # once (15µs+3µs) by Template::Plugins::_load at line 27
use C4::Context;
# spent 18µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@27 # spent 3µs making 1 call to C4::Context::import
2816µs
# spent 6µs within Koha::Template::Plugin::AudioAlerts::BEGIN@28 which was called: # once (6µs+0s) by Template::Plugins::_load at line 28
use Koha;
# spent 6µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@28
29
30sub AudioAlerts {
31 my $dbh = C4::Context->dbh;
32 my $audio_alerts = $dbh->selectall_arrayref( 'SELECT * FROM audio_alerts ORDER BY precedence', { Slice => {} } );
33 return encode_json($audio_alerts);
34}
35
361;