← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:11:56 2013

Filename/usr/share/koha/lib/C4/ClassSortRoutine/LCC.pm
StatementsExecuted 22 statements in 703µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1115.11ms46.4msC4::ClassSortRoutine::LCC::::BEGIN@23C4::ClassSortRoutine::LCC::BEGIN@23
11140µs286µsC4::ClassSortRoutine::LCC::::get_class_sort_keyC4::ClassSortRoutine::LCC::get_class_sort_key
11127µs35µsC4::ClassSortRoutine::LCC::::BEGIN@21C4::ClassSortRoutine::LCC::BEGIN@21
11125µs91µsC4::ClassSortRoutine::LCC::::BEGIN@25C4::ClassSortRoutine::LCC::BEGIN@25
11113µs27µsC4::ClassSortRoutine::LCC::::BEGIN@22C4::ClassSortRoutine::LCC::BEGIN@22
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package C4::ClassSortRoutine::LCC;
2
3# Copyright (C) 2007 LibLime
4# Copyright (C) 2012 Equinox Software, Inc.
5#
6# This file is part of Koha.
7#
8# Koha is free software; you can redistribute it and/or modify it under the
9# terms of the GNU General Public License as published by the Free Software
10# Foundation; either version 2 of the License, or (at your option) any later
11# version.
12#
13# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License along
18# with Koha; if not, write to the Free Software Foundation, Inc.,
19# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21345µs243µs
# spent 35µs (27+8) within C4::ClassSortRoutine::LCC::BEGIN@21 which was called: # once (27µs+8µs) by C4::ClassSource::BEGIN@25 at line 21
use strict;
# spent 35µs making 1 call to C4::ClassSortRoutine::LCC::BEGIN@21 # spent 8µs making 1 call to strict::import
22331µs240µs
# spent 27µs (13+14) within C4::ClassSortRoutine::LCC::BEGIN@22 which was called: # once (13µs+14µs) by C4::ClassSource::BEGIN@25 at line 22
use warnings;
# spent 27µs making 1 call to C4::ClassSortRoutine::LCC::BEGIN@22 # spent 14µs making 1 call to warnings::import
233229µs246.4ms
# spent 46.4ms (5.11+41.3) within C4::ClassSortRoutine::LCC::BEGIN@23 which was called: # once (5.11ms+41.3ms) by C4::ClassSource::BEGIN@25 at line 23
use Library::CallNumber::LC;
# spent 46.4ms making 1 call to C4::ClassSortRoutine::LCC::BEGIN@23 # spent 8µs making 1 call to UNIVERSAL::import
24
253358µs2156µs
# spent 91µs (25+66) within C4::ClassSortRoutine::LCC::BEGIN@25 which was called: # once (25µs+66µs) by C4::ClassSource::BEGIN@25 at line 25
use vars qw($VERSION);
# spent 91µs making 1 call to C4::ClassSortRoutine::LCC::BEGIN@25 # spent 66µs making 1 call to vars::import
26
27# set the version for version checking
2813µs$VERSION = 3.07.00.049;
29
30=head1 NAME
31
- -
50
# spent 286µs (40+246) within C4::ClassSortRoutine::LCC::get_class_sort_key which was called: # once (40µs+246µs) by C4::ClassSource::BEGIN@25 at line 1 of (eval 1018)[/usr/share/koha/lib/C4/ClassSortRoutine.pm:58]
sub get_class_sort_key {
51831µs my ($cn_class, $cn_item) = @_;
52
53 $cn_class = '' unless defined $cn_class;
54 $cn_item = '' unless defined $cn_item;
55137µs my $call_number = Library::CallNumber::LC->new(uc "$cn_class $cn_item");
# spent 37µs making 1 call to Library::CallNumber::LC::new
56 return '' unless defined $call_number;
571209µs my $key = $call_number->normalize();
# spent 209µs making 1 call to Library::CallNumber::LC::normalize
58 $key = '' unless defined $key;
59 return $key;
60
61}
62
6316µs1;
64
65=head1 AUTHOR
66
- -