| Filename | /usr/share/perl5/MARC/File/Encode.pm |
| Statements | Executed 14 statements in 230µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 23µs | 29µs | MARC::File::Encode::BEGIN@19 |
| 1 | 1 | 1 | 19µs | 170µs | MARC::File::Encode::BEGIN@22 |
| 1 | 1 | 1 | 18µs | 45µs | MARC::File::Encode::BEGIN@20 |
| 1 | 1 | 1 | 17µs | 128µs | MARC::File::Encode::BEGIN@21 |
| 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 | 35µs | # spent 29µs (23+6) within MARC::File::Encode::BEGIN@19 which was called:
# once (23µs+6µs) by MARC::File::USMARC::BEGIN@13 at line 19 # spent 29µs making 1 call to MARC::File::Encode::BEGIN@19
# spent 6µs making 1 call to strict::import |
| 20 | 3 | 42µs | 2 | 72µs | # spent 45µs (18+27) within MARC::File::Encode::BEGIN@20 which was called:
# once (18µs+27µs) by MARC::File::USMARC::BEGIN@13 at line 20 # spent 45µs making 1 call to MARC::File::Encode::BEGIN@20
# spent 27µs making 1 call to warnings::import |
| 21 | 3 | 43µs | 2 | 239µs | # spent 128µs (17+111) within MARC::File::Encode::BEGIN@21 which was called:
# once (17µs+111µs) by MARC::File::USMARC::BEGIN@13 at line 21 # spent 128µs making 1 call to MARC::File::Encode::BEGIN@21
# spent 111µs making 1 call to base::import |
| 22 | 3 | 96µs | 2 | 321µs | # spent 170µs (19+151) within MARC::File::Encode::BEGIN@22 which was called:
# once (19µs+151µs) by MARC::File::USMARC::BEGIN@13 at line 22 # spent 170µs making 1 call to MARC::File::Encode::BEGIN@22
# spent 151µ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; |