← 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 11:58:52 2013
Reported on Tue Oct 15 12:01:06 2013

Filename/usr/share/koha/lib/C4/ClassSortRoutine/Generic.pm
StatementsExecuted 20 statements in 265µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11124µs31µsC4::ClassSortRoutine::Generic::::BEGIN@20C4::ClassSortRoutine::Generic::BEGIN@20
11123µs161µsC4::ClassSortRoutine::Generic::::get_class_sort_keyC4::ClassSortRoutine::Generic::get_class_sort_key
44121µs138µsC4::ClassSortRoutine::Generic::::CORE:substC4::ClassSortRoutine::Generic::CORE:subst (opcode)
11112µs46µsC4::ClassSortRoutine::Generic::::BEGIN@23C4::ClassSortRoutine::Generic::BEGIN@23
11111µs32µsC4::ClassSortRoutine::Generic::::BEGIN@21C4::ClassSortRoutine::Generic::BEGIN@21
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::Generic;
2
3# Copyright (C) 2007 LibLime
4#
5# This file is part of Koha.
6#
7# Koha is free software; you can redistribute it and/or modify it under the
8# terms of the GNU General Public License as published by the Free Software
9# Foundation; either version 2 of the License, or (at your option) any later
10# version.
11#
12# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with Koha; if not, write to the Free Software Foundation, Inc.,
18# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20331µs237µs
# spent 31µs (24+7) within C4::ClassSortRoutine::Generic::BEGIN@20 which was called: # once (24µs+7µs) by C4::ClassSource::BEGIN@25 at line 20
use strict;
# spent 31µs making 1 call to C4::ClassSortRoutine::Generic::BEGIN@20 # spent 7µs making 1 call to strict::import
21334µs252µs
# spent 32µs (11+20) within C4::ClassSortRoutine::Generic::BEGIN@21 which was called: # once (11µs+20µs) by C4::ClassSource::BEGIN@25 at line 21
use warnings;
# spent 32µs making 1 call to C4::ClassSortRoutine::Generic::BEGIN@21 # spent 20µs making 1 call to warnings::import
22
233152µs281µs
# spent 46µs (12+35) within C4::ClassSortRoutine::Generic::BEGIN@23 which was called: # once (12µs+35µs) by C4::ClassSource::BEGIN@25 at line 23
use vars qw($VERSION);
# spent 46µs making 1 call to C4::ClassSortRoutine::Generic::BEGIN@23 # spent 35µs making 1 call to vars::import
24
25# set the version for version checking
2612µs$VERSION = 3.07.00.049;
27
28=head1 NAME
29
- -
53
# spent 161µs (23+138) within C4::ClassSortRoutine::Generic::get_class_sort_key which was called: # once (23µs+138µs) by C4::ClassSource::BEGIN@25 at line 1 of (eval 1001)[/usr/share/koha/lib/C4/ClassSortRoutine.pm:58]
sub get_class_sort_key {
54934µs my ($cn_class, $cn_item) = @_;
55
56 $cn_class = '' unless defined $cn_class;
57 $cn_item = '' unless defined $cn_item;
58 my $key = uc "$cn_class $cn_item";
5912µs $key =~ s/^\s+//;
# spent 2µs making 1 call to C4::ClassSortRoutine::Generic::CORE:subst
6012µs $key =~ s/\s+$//;
# spent 2µs making 1 call to C4::ClassSortRoutine::Generic::CORE:subst
6111µs $key =~ s/\s+/_/g;
# spent 1µs making 1 call to C4::ClassSortRoutine::Generic::CORE:subst
6219µs2249µs $key =~ s/[^\p{IsAlnum}_]//g;
# spent 133µs making 1 call to C4::ClassSortRoutine::Generic::CORE:subst # spent 117µs making 1 call to utf8::SWASHNEW
63 return $key;
64
65}
66
6713µs1;
68
69=head1 AUTHOR
70
- -
 
# spent 138µs (21+117) within C4::ClassSortRoutine::Generic::CORE:subst which was called 4 times, avg 35µs/call: # once (16µs+117µs) by C4::ClassSortRoutine::Generic::get_class_sort_key at line 62 # once (2µs+0s) by C4::ClassSortRoutine::Generic::get_class_sort_key at line 59 # once (2µs+0s) by C4::ClassSortRoutine::Generic::get_class_sort_key at line 60 # once (1µs+0s) by C4::ClassSortRoutine::Generic::get_class_sort_key at line 61
sub C4::ClassSortRoutine::Generic::CORE:subst; # opcode