← 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:02:28 2013

Filename/usr/share/perl/5.10/bytes_heavy.pl
StatementsExecuted 1145 statements in 5.21ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
569212.85ms2.85msbytes::::substrbytes::substr
569321.59ms1.59msbytes::::lengthbytes::length
11126µs34µsbytes::::BEGIN@4bytes::BEGIN@4
11110µs12µsbytes::::BEGIN@34bytes::BEGIN@34
11110µs12µsbytes::::BEGIN@17bytes::BEGIN@17
1119µs11µsbytes::::BEGIN@22bytes::BEGIN@22
1118µs11µsbytes::::BEGIN@9bytes::BEGIN@9
1117µs10µsbytes::::BEGIN@27bytes::BEGIN@27
0000s0sbytes::::chrbytes::chr
0000s0sbytes::::indexbytes::index
0000s0sbytes::::ordbytes::ord
0000s0sbytes::::rindexbytes::rindex
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package bytes;
2
3
# spent 1.59ms within bytes::length which was called 569 times, avg 3µs/call: # 544 times (1.41ms+0s) by MARC::File::USMARC::decode at line 175 of MARC/File/USMARC.pm, avg 3µs/call # 24 times (174µs+0s) by MARC::File::USMARC::decode at line 126 of MARC/File/USMARC.pm, avg 7µs/call # once (3µs+0s) by MARC::File::USMARC::decode at line 17 of bytes.pm
sub length (_) {
4169µs243µs
# spent 34µs (26+9) within bytes::BEGIN@4 which was called: # once (26µs+9µs) by bytes::AUTOLOAD at line 4
BEGIN { bytes::import() }
# spent 34µs making 1 call to bytes::BEGIN@4 # spent 9µs making 1 call to bytes::import
55691.90ms return CORE::length($_[0]);
6}
7
8
# spent 2.85ms within bytes::substr which was called 569 times, avg 5µs/call: # 544 times (2.66ms+0s) by MARC::File::USMARC::decode at line 168 of MARC/File/USMARC.pm, avg 5µs/call # 25 times (187µs+0s) by MARC::File::USMARC::decode at line 136 of MARC/File/USMARC.pm, avg 7µs/call
sub substr ($$;$$) {
9182µs214µs
# spent 11µs (8+3) within bytes::BEGIN@9 which was called: # once (8µs+3µs) by bytes::AUTOLOAD at line 9
BEGIN { bytes::import() }
# spent 11µs making 1 call to bytes::BEGIN@9 # spent 3µs making 1 call to bytes::import
10 return
115692.94ms @_ == 2 ? CORE::substr($_[0], $_[1]) :
12 @_ == 3 ? CORE::substr($_[0], $_[1], $_[2]) :
13 CORE::substr($_[0], $_[1], $_[2], $_[3]) ;
14}
15
16sub ord (_) {
17147µs215µs
# spent 12µs (10+2) within bytes::BEGIN@17 which was called: # once (10µs+2µs) by bytes::AUTOLOAD at line 17
BEGIN { bytes::import() }
# spent 12µs making 1 call to bytes::BEGIN@17 # spent 2µs making 1 call to bytes::import
18 return CORE::ord($_[0]);
19}
20
21sub chr (_) {
22143µs213µs
# spent 11µs (9+2) within bytes::BEGIN@22 which was called: # once (9µs+2µs) by bytes::AUTOLOAD at line 22
BEGIN { bytes::import() }
# spent 11µs making 1 call to bytes::BEGIN@22 # spent 2µs making 1 call to bytes::import
23 return CORE::chr($_[0]);
24}
25
26sub index ($$;$) {
27160µs212µs
# spent 10µs (7+2) within bytes::BEGIN@27 which was called: # once (7µs+2µs) by bytes::AUTOLOAD at line 27
BEGIN { bytes::import() }
# spent 10µs making 1 call to bytes::BEGIN@27 # spent 2µs making 1 call to bytes::import
28 return
29 @_ == 2 ? CORE::index($_[0], $_[1]) :
30 CORE::index($_[0], $_[1], $_[2]) ;
31}
32
33sub rindex ($$;$) {
34161µs215µs
# spent 12µs (10+2) within bytes::BEGIN@34 which was called: # once (10µs+2µs) by bytes::AUTOLOAD at line 34
BEGIN { bytes::import() }
# spent 12µs making 1 call to bytes::BEGIN@34 # spent 2µs making 1 call to bytes::import
35 return
36 @_ == 2 ? CORE::rindex($_[0], $_[1]) :
37 CORE::rindex($_[0], $_[1], $_[2]) ;
38}
39
4013µs1;