← 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:27 2013

Filename/usr/share/perl/5.10/bytes_heavy.pl
StatementsExecuted 1145 statements in 4.20ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
569212.06ms2.06msbytes::::substrbytes::substr
569321.35ms1.35msbytes::::lengthbytes::length
11118µs23µsbytes::::BEGIN@4bytes::BEGIN@4
11112µs15µsbytes::::BEGIN@34bytes::BEGIN@34
1119µs12µsbytes::::BEGIN@22bytes::BEGIN@22
1119µs11µsbytes::::BEGIN@9bytes::BEGIN@9
1118µs10µsbytes::::BEGIN@17bytes::BEGIN@17
1118µ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.35ms within bytes::length which was called 569 times, avg 2µs/call: # 544 times (1.18ms+0s) by MARC::File::USMARC::decode at line 175 of MARC/File/USMARC.pm, avg 2µs/call # 24 times (166µs+0s) by MARC::File::USMARC::decode at line 126 of MARC/File/USMARC.pm, avg 7µs/call # once (2µs+0s) by MARC::File::USMARC::decode at line 17 of bytes.pm
sub length (_) {
4152µs228µs
# spent 23µs (18+5) within bytes::BEGIN@4 which was called: # once (18µs+5µs) by bytes::AUTOLOAD at line 4
BEGIN { bytes::import() }
# spent 23µs making 1 call to bytes::BEGIN@4 # spent 5µs making 1 call to bytes::import
55691.53ms return CORE::length($_[0]);
6}
7
8
# spent 2.06ms within bytes::substr which was called 569 times, avg 4µs/call: # 544 times (1.91ms+0s) by MARC::File::USMARC::decode at line 168 of MARC/File/USMARC.pm, avg 4µs/call # 25 times (152µs+0s) by MARC::File::USMARC::decode at line 136 of MARC/File/USMARC.pm, avg 6µs/call
sub substr ($$;$$) {
9177µs214µs
# spent 11µs (9+2) within bytes::BEGIN@9 which was called: # once (9µs+2µs) by bytes::AUTOLOAD at line 9
BEGIN { bytes::import() }
# spent 11µs making 1 call to bytes::BEGIN@9 # spent 2µs making 1 call to bytes::import
10 return
115692.33ms @_ == 2 ? CORE::substr($_[0], $_[1]) :
12 @_ == 3 ? CORE::substr($_[0], $_[1], $_[2]) :
13 CORE::substr($_[0], $_[1], $_[2], $_[3]) ;
14}
15
16sub ord (_) {
17149µs213µs
# spent 10µs (8+2) within bytes::BEGIN@17 which was called: # once (8µs+2µs) by bytes::AUTOLOAD at line 17
BEGIN { bytes::import() }
# spent 10µ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µs214µs
# spent 12µ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 12µ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 ($$;$) {
27167µs212µs
# spent 10µs (8+2) within bytes::BEGIN@27 which was called: # once (8µ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 ($$;$) {
34157µs218µs
# spent 15µs (12+3) within bytes::BEGIN@34 which was called: # once (12µs+3µs) by bytes::AUTOLOAD at line 34
BEGIN { bytes::import() }
# spent 15µs making 1 call to bytes::BEGIN@34 # spent 3µs making 1 call to bytes::import
35 return
36 @_ == 2 ? CORE::rindex($_[0], $_[1]) :
37 CORE::rindex($_[0], $_[1], $_[2]) ;
38}
39
4012µs1;