Filename | /usr/share/perl5/MARC/File/Encode.pm |
Statements | Executed 558 statements in 2.78ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
544 | 1 | 1 | 2.45ms | 25.7ms | marc_to_utf8 | MARC::File::Encode::
1 | 1 | 1 | 30µs | 138µs | BEGIN@21 | MARC::File::Encode::
1 | 1 | 1 | 18µs | 22µs | BEGIN@19 | MARC::File::Encode::
1 | 1 | 1 | 18µs | 111µs | BEGIN@22 | MARC::File::Encode::
1 | 1 | 1 | 13µs | 48µs | BEGIN@20 | MARC::File::Encode::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package MARC::File::Encode; | ||||
2 | |||||
3 | =head1 NAME | ||||
4 | |||||
- - | |||||
19 | 3 | 29µs | 2 | 26µs | # spent 22µs (18+4) within MARC::File::Encode::BEGIN@19 which was called:
# once (18µs+4µs) by MARC::File::USMARC::BEGIN@13 at line 19 # spent 22µs making 1 call to MARC::File::Encode::BEGIN@19
# spent 4µs making 1 call to strict::import |
20 | 3 | 80µs | 2 | 83µs | # spent 48µs (13+35) within MARC::File::Encode::BEGIN@20 which was called:
# once (13µs+35µs) by MARC::File::USMARC::BEGIN@13 at line 20 # spent 48µs making 1 call to MARC::File::Encode::BEGIN@20
# spent 35µs making 1 call to warnings::import |
21 | 3 | 42µs | 2 | 246µs | # spent 138µs (30+108) within MARC::File::Encode::BEGIN@21 which was called:
# once (30µs+108µs) by MARC::File::USMARC::BEGIN@13 at line 21 # spent 138µs making 1 call to MARC::File::Encode::BEGIN@21
# spent 108µs making 1 call to base::import |
22 | 3 | 80µs | 2 | 205µs | # spent 111µs (18+93) within MARC::File::Encode::BEGIN@22 which was called:
# once (18µs+93µs) by MARC::File::USMARC::BEGIN@13 at line 22 # spent 111µs making 1 call to MARC::File::Encode::BEGIN@22
# spent 94µs making 1 call to Exporter::import |
23 | |||||
24 | 1 | 1µs | our @EXPORT_OK = qw( marc_to_utf8 ); | ||
25 | |||||
26 | =head2 marc_to_utf8() | ||||
27 | |||||
- - | |||||
32 | # spent 25.7ms (2.45+23.2) within MARC::File::Encode::marc_to_utf8 which was called 544 times, avg 47µs/call:
# 544 times (2.45ms+23.2ms) by MARC::File::USMARC::decode at line 171 of MARC/File/USMARC.pm, avg 47µs/call | ||||
33 | # if there is invalid utf8 date then this will through an exception | ||||
34 | # let's just hope it's valid :-) | ||||
35 | 544 | 2.54ms | 544 | 23.2ms | return decode( 'UTF-8', $_[0], 1 ); # spent 23.2ms making 544 calls to Encode::decode, avg 43µs/call |
36 | } | ||||
37 | |||||
38 | 1 | 3µs | 1; |