| Filename | /usr/share/perl5/MARC/File/Encode.pm |
| Statements | Executed 558 statements in 3.21ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 4.17ms | 9.01ms | MARC::File::Encode::BEGIN@22 |
| 544 | 1 | 1 | 3.10ms | 31.6ms | MARC::File::Encode::marc_to_utf8 |
| 1 | 1 | 1 | 20µs | 24µs | MARC::File::Encode::BEGIN@19 |
| 1 | 1 | 1 | 12µs | 94µs | MARC::File::Encode::BEGIN@21 |
| 1 | 1 | 1 | 11µs | 31µs | MARC::File::Encode::BEGIN@20 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package MARC::File::Encode; | ||||
| 2 | |||||
| 3 | =head1 NAME | ||||
| 4 | |||||
| - - | |||||
| 19 | 3 | 28µs | 2 | 28µ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 # spent 24µs making 1 call to MARC::File::Encode::BEGIN@19
# spent 4µs making 1 call to strict::import |
| 20 | 3 | 29µs | 2 | 50µ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 # spent 31µs making 1 call to MARC::File::Encode::BEGIN@20
# spent 20µs making 1 call to warnings::import |
| 21 | 3 | 33µs | 2 | 176µ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 # spent 94µs making 1 call to MARC::File::Encode::BEGIN@21
# spent 82µs making 1 call to base::import |
| 22 | 3 | 229µs | 2 | 9.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 # spent 9.01ms making 1 call to MARC::File::Encode::BEGIN@22
# spent 159µs making 1 call to Exporter::import |
| 23 | |||||
| 24 | 1 | 2µs | our @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 | ||||
| 33 | # if there is invalid utf8 date then this will through an exception | ||||
| 34 | # let's just hope it's valid :-) | ||||
| 35 | 544 | 2.88ms | 544 | 28.6ms | return decode( 'UTF-8', $_[0], 1 ); # spent 28.6ms making 544 calls to Encode::decode, avg 52µs/call |
| 36 | } | ||||
| 37 | |||||
| 38 | 1 | 5µs | 1; |