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

Filename/usr/share/perl5/MARC/File/Encode.pm
StatementsExecuted 558 statements in 3.21ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1114.17ms9.01msMARC::File::Encode::::BEGIN@22MARC::File::Encode::BEGIN@22
544113.10ms31.6msMARC::File::Encode::::marc_to_utf8MARC::File::Encode::marc_to_utf8
11120µs24µsMARC::File::Encode::::BEGIN@19MARC::File::Encode::BEGIN@19
11112µs94µsMARC::File::Encode::::BEGIN@21MARC::File::Encode::BEGIN@21
11111µs31µsMARC::File::Encode::::BEGIN@20MARC::File::Encode::BEGIN@20
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package MARC::File::Encode;
2
3=head1 NAME
4
- -
19328µs228µs
# spent 24µs (20+4) within MARC::File::Encode::BEGIN@19 which was called: # once (20µs+4µs) by MARC::File::USMARC::BEGIN@13 at line 19
use strict;
# spent 24µs making 1 call to MARC::File::Encode::BEGIN@19 # spent 4µs making 1 call to strict::import
20329µs250µs
# spent 31µs (11+20) within MARC::File::Encode::BEGIN@20 which was called: # once (11µs+20µs) by MARC::File::USMARC::BEGIN@13 at line 20
use warnings;
# spent 31µs making 1 call to MARC::File::Encode::BEGIN@20 # spent 20µs making 1 call to warnings::import
21333µs2176µs
# spent 94µs (12+82) within MARC::File::Encode::BEGIN@21 which was called: # once (12µs+82µs) by MARC::File::USMARC::BEGIN@13 at line 21
use base qw( Exporter );
# spent 94µs making 1 call to MARC::File::Encode::BEGIN@21 # spent 82µs making 1 call to base::import
223229µs29.17ms
# spent 9.01ms (4.17+4.84) within MARC::File::Encode::BEGIN@22 which was called: # once (4.17ms+4.84ms) by MARC::File::USMARC::BEGIN@13 at line 22
use Encode;
# spent 9.01ms making 1 call to MARC::File::Encode::BEGIN@22 # spent 159µs making 1 call to Exporter::import
23
2412µsour @EXPORT_OK = qw( marc_to_utf8 );
25
26=head2 marc_to_utf8()
27
- -
32
# spent 31.6ms (3.10+28.6) within MARC::File::Encode::marc_to_utf8 which was called 544 times, avg 58µs/call: # 544 times (3.10ms+28.6ms) by MARC::File::USMARC::decode at line 171 of MARC/File/USMARC.pm, avg 58µs/call
sub marc_to_utf8 {
33 # if there is invalid utf8 date then this will through an exception
34 # let's just hope it's valid :-)
355442.88ms54428.6ms return decode( 'UTF-8', $_[0], 1 );
# spent 28.6ms making 544 calls to Encode::decode, avg 52µs/call
36}
37
3815µs1;