| Filename | /usr/share/perl5/MARC/File/Encode.pm |
| Statements | Executed 14 statements in 266µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 25µs | 31µs | MARC::File::Encode::BEGIN@19 |
| 1 | 1 | 1 | 22µs | 177µs | MARC::File::Encode::BEGIN@22 |
| 1 | 1 | 1 | 21µs | 134µs | MARC::File::Encode::BEGIN@21 |
| 1 | 1 | 1 | 16µs | 53µs | MARC::File::Encode::BEGIN@20 |
| 0 | 0 | 0 | 0s | 0s | MARC::File::Encode::marc_to_utf8 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package MARC::File::Encode; | ||||
| 2 | |||||
| 3 | =head1 NAME | ||||
| 4 | |||||
| - - | |||||
| 19 | 3 | 42µs | 2 | 37µs | # spent 31µs (25+6) within MARC::File::Encode::BEGIN@19 which was called:
# once (25µs+6µs) by MARC::File::USMARC::BEGIN@13 at line 19 # spent 31µs making 1 call to MARC::File::Encode::BEGIN@19
# spent 6µs making 1 call to strict::import |
| 20 | 3 | 52µs | 2 | 90µs | # spent 53µs (16+37) within MARC::File::Encode::BEGIN@20 which was called:
# once (16µs+37µs) by MARC::File::USMARC::BEGIN@13 at line 20 # spent 53µs making 1 call to MARC::File::Encode::BEGIN@20
# spent 37µs making 1 call to warnings::import |
| 21 | 3 | 47µs | 2 | 247µs | # spent 134µs (21+113) within MARC::File::Encode::BEGIN@21 which was called:
# once (21µs+113µs) by MARC::File::USMARC::BEGIN@13 at line 21 # spent 134µs making 1 call to MARC::File::Encode::BEGIN@21
# spent 113µs making 1 call to base::import |
| 22 | 3 | 118µs | 2 | 332µs | # spent 177µs (22+155) within MARC::File::Encode::BEGIN@22 which was called:
# once (22µs+155µs) by MARC::File::USMARC::BEGIN@13 at line 22 # spent 177µs making 1 call to MARC::File::Encode::BEGIN@22
# spent 155µ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 | 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 :-) | ||||
| 35 | return decode( 'UTF-8', $_[0], 1 ); | ||||
| 36 | } | ||||
| 37 | |||||
| 38 | 1 | 5µs | 1; |