← 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/Generic.pm
StatementsExecuted 20 statements in 309µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
44128µs226µsC4::ClassSortRoutine::Generic::::CORE:substC4::ClassSortRoutine::Generic::CORE:subst (opcode)
11127µs36µsC4::ClassSortRoutine::Generic::::BEGIN@20C4::ClassSortRoutine::Generic::BEGIN@20
11125µs252µsC4::ClassSortRoutine::Generic::::get_class_sort_keyC4::ClassSortRoutine::Generic::get_class_sort_key
11113µs52µsC4::ClassSortRoutine::Generic::::BEGIN@23C4::ClassSortRoutine::Generic::BEGIN@23
11113µs37µ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
20334µs245µs
# spent 36µs (27+9) within C4::ClassSortRoutine::Generic::BEGIN@20 which was called: # once (27µs+9µs) by C4::ClassSource::BEGIN@25 at line 20
use strict;
# spent 36µs making 1 call to C4::ClassSortRoutine::Generic::BEGIN@20 # spent 9µs making 1 call to strict::import
21337µs261µs
# spent 37µs (13+24) within C4::ClassSortRoutine::Generic::BEGIN@21 which was called: # once (13µs+24µs) by C4::ClassSource::BEGIN@25 at line 21
use warnings;
# spent 37µs making 1 call to C4::ClassSortRoutine::Generic::BEGIN@21 # spent 24µs making 1 call to warnings::import
22
233184µs292µs
# spent 52µs (13+39) within C4::ClassSortRoutine::Generic::BEGIN@23 which was called: # once (13µs+39µs) by C4::ClassSource::BEGIN@25 at line 23
use vars qw($VERSION);
# spent 52µs making 1 call to C4::ClassSortRoutine::Generic::BEGIN@23 # spent 39µs making 1 call to vars::import
24
25# set the version for version checking
2611µs$VERSION = 3.07.00.049;
27
28=head1 NAME
29
- -
53
# spent 252µs (25+226) within C4::ClassSortRoutine::Generic::get_class_sort_key which was called: # once (25µs+226µ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 {
54939µ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";
5913µs $key =~ s/^\s+//;
# spent 3µ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
62110µs2418µs $key =~ s/[^\p{IsAlnum}_]//g;
# spent 220µs making 1 call to C4::ClassSortRoutine::Generic::CORE:subst # spent 198µs making 1 call to utf8::SWASHNEW
63 return $key;
64
65}
66
6713µs1;
68
69=head1 AUTHOR
70
- -
 
# spent 226µs (28+198) within C4::ClassSortRoutine::Generic::CORE:subst which was called 4 times, avg 57µs/call: # once (21µs+198µs) by C4::ClassSortRoutine::Generic::get_class_sort_key at line 62 # once (3µ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