← 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:31:39 2016

Filename/home/vagrant/kohaclone/Koha/Template/Plugin/AudioAlerts.pm
StatementsExecuted 13 statements in 493µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11129µs119µsKoha::Template::Plugin::AudioAlerts::::BEGIN@20Koha::Template::Plugin::AudioAlerts::BEGIN@20
11124µs56µsKoha::Template::Plugin::AudioAlerts::::BEGIN@22Koha::Template::Plugin::AudioAlerts::BEGIN@22
11116µs18µsKoha::Template::Plugin::AudioAlerts::::BEGIN@27Koha::Template::Plugin::AudioAlerts::BEGIN@27
11114µs73µsKoha::Template::Plugin::AudioAlerts::::BEGIN@25Koha::Template::Plugin::AudioAlerts::BEGIN@25
11113µs107µ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
202139µs2208µs
# spent 119µs (29+89) within Koha::Template::Plugin::AudioAlerts::BEGIN@20 which was called: # once (29µs+89µs) by Template::Plugins::_load at line 20
use Modern::Perl;
# spent 119µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@20 # spent 89µs making 1 call to Modern::Perl::import
21
22278µs289µs
# spent 56µs (24+32) within Koha::Template::Plugin::AudioAlerts::BEGIN@22 which was called: # once (24µs+32µs) by Template::Plugins::_load at line 22
use Encode qw( encode );
# spent 56µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@22 # spent 32µs making 1 call to Exporter::import
23237µs2201µs
# spent 107µs (13+94) within Koha::Template::Plugin::AudioAlerts::BEGIN@23 which was called: # once (13µs+94µs) by Template::Plugins::_load at line 23
use JSON;
# spent 107µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@23 # spent 94µs making 1 call to JSON::import
24
25297µs2131µs
# spent 73µs (14+59) within Koha::Template::Plugin::AudioAlerts::BEGIN@25 which was called: # once (14µs+59µs) by Template::Plugins::_load at line 25
use base qw( Template::Plugin );
# spent 73µs making 1 call to Koha::Template::Plugin::AudioAlerts::BEGIN@25 # spent 59µs making 1 call to base::import
26
27237µs221µs
# spent 18µs (16+3) within Koha::Template::Plugin::AudioAlerts::BEGIN@27 which was called: # once (16µ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
282102µs16µ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
3613µs1;