Filename | /usr/share/perl/5.14/utf8.pm |
Statements | Executed 11 statements in 65µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
113 | 1 | 1 | 131µs | 131µs | is_utf8 (xsub) | utf8::
4 | 4 | 4 | 36µs | 36µs | import | utf8::
0 | 0 | 0 | 0s | 0s | AUTOLOAD | utf8::
0 | 0 | 0 | 0s | 0s | unimport | utf8::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package utf8; | ||||
2 | |||||
3 | 1 | 900ns | $utf8::hint_bits = 0x00800000; | ||
4 | |||||
5 | 1 | 600ns | our $VERSION = '1.09'; | ||
6 | |||||
7 | # spent 36µs within utf8::import which was called 4 times, avg 9µs/call:
# once (19µs+0s) by DateTime::Locale::root::BEGIN@23 at line 23 of DateTime/Locale/root.pm
# once (7µs+0s) by DateTime::Locale::Catalog::BEGIN@19 at line 19 of DateTime/Locale/Catalog.pm
# once (5µs+0s) by DateTime::Locale::en_US::BEGIN@23 at line 23 of DateTime/Locale/en_US.pm
# once (4µs+0s) by DateTime::Locale::en::BEGIN@23 at line 23 of DateTime/Locale/en.pm | ||||
8 | 8 | 57µs | $^H |= $utf8::hint_bits; | ||
9 | $enc{caller()} = $_[1] if $_[1]; | ||||
10 | } | ||||
11 | |||||
12 | sub unimport { | ||||
13 | $^H &= ~$utf8::hint_bits; | ||||
14 | } | ||||
15 | |||||
16 | sub AUTOLOAD { | ||||
17 | require "utf8_heavy.pl"; | ||||
18 | goto &$AUTOLOAD if defined &$AUTOLOAD; | ||||
19 | require Carp; | ||||
20 | Carp::croak("Undefined subroutine $AUTOLOAD called"); | ||||
21 | } | ||||
22 | |||||
23 | 1 | 6µs | 1; | ||
24 | __END__ | ||||
# spent 131µs within utf8::is_utf8 which was called 113 times, avg 1µs/call:
# 113 times (131µs+0s) by constant::import at line 123 of constant.pm, avg 1µs/call |