← Index
NYTProf Performance Profile   « block view • line view • sub view »
For conv.pl
  Run on Sun Nov 14 21:14:18 2010
Reported on Sun Nov 14 21:17:51 2010

Filename/usr/share/perl/5.10/bytes_heavy.pl
StatementsExecuted 79548 statements in 343ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
7954122263ms263msbytes::::lengthbytes::length
11119µs24µsbytes::::BEGIN@9bytes::BEGIN@9
11116µs22µsbytes::::BEGIN@4bytes::BEGIN@4
11113µs17µsbytes::::BEGIN@17bytes::BEGIN@17
11113µs18µsbytes::::BEGIN@34bytes::BEGIN@34
11112µs17µsbytes::::BEGIN@22bytes::BEGIN@22
11111µs16µsbytes::::BEGIN@27bytes::BEGIN@27
0000s0sbytes::::chrbytes::chr
0000s0sbytes::::indexbytes::index
0000s0sbytes::::ordbytes::ord
0000s0sbytes::::rindexbytes::rindex
0000s0sbytes::::substrbytes::substr
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package bytes;
2
3
# spent 263ms within bytes::length which was called 79541 times, avg 3µs/call: # 79540 times (263ms+0s) by MARC::File::USMARC::_build_tag_directory at line 276 of MARC/File/USMARC.pm, avg 3µs/call # once (4µs+0s) by MARC::File::USMARC::_build_tag_directory at line 17 of bytes.pm
sub length (_) {
4167µs228µs
# spent 22µs (16+6) within bytes::BEGIN@4 which was called: # once (16µs+6µs) by bytes::AUTOLOAD at line 4
BEGIN { bytes::import() }
# spent 22µs making 1 call to bytes::BEGIN@4 # spent 6µs making 1 call to bytes::import
579541342ms return CORE::length($_[0]);
6}
7
8sub substr ($$;$$) {
91112µs229µs
# spent 24µs (19+5) within bytes::BEGIN@9 which was called: # once (19µs+5µs) by bytes::AUTOLOAD at line 9
BEGIN { bytes::import() }
# spent 24µs making 1 call to bytes::BEGIN@9 # spent 5µs making 1 call to bytes::import
10 return
11 @_ == 2 ? CORE::substr($_[0], $_[1]) :
12 @_ == 3 ? CORE::substr($_[0], $_[1], $_[2]) :
13 CORE::substr($_[0], $_[1], $_[2], $_[3]) ;
14}
15
16sub ord (_) {
17166µs221µs
# spent 17µs (13+4) within bytes::BEGIN@17 which was called: # once (13µs+4µs) by bytes::AUTOLOAD at line 17
BEGIN { bytes::import() }
# spent 17µs making 1 call to bytes::BEGIN@17 # spent 4µs making 1 call to bytes::import
18 return CORE::ord($_[0]);
19}
20
21sub chr (_) {
22165µs222µs
# spent 17µs (12+5) within bytes::BEGIN@22 which was called: # once (12µs+5µs) by bytes::AUTOLOAD at line 22
BEGIN { bytes::import() }
# spent 17µs making 1 call to bytes::BEGIN@22 # spent 5µs making 1 call to bytes::import
23 return CORE::chr($_[0]);
24}
25
26sub index ($$;$) {
27187µs221µs
# spent 16µs (11+5) within bytes::BEGIN@27 which was called: # once (11µs+5µs) by bytes::AUTOLOAD at line 27
BEGIN { bytes::import() }
# spent 16µs making 1 call to bytes::BEGIN@27 # spent 5µs making 1 call to bytes::import
28 return
29 @_ == 2 ? CORE::index($_[0], $_[1]) :
30 CORE::index($_[0], $_[1], $_[2]) ;
31}
32
33sub rindex ($$;$) {
34169µs223µs
# spent 18µs (13+5) within bytes::BEGIN@34 which was called: # once (13µs+5µs) by bytes::AUTOLOAD at line 34
BEGIN { bytes::import() }
# spent 18µs making 1 call to bytes::BEGIN@34 # spent 5µs making 1 call to bytes::import
35 return
36 @_ == 2 ? CORE::rindex($_[0], $_[1]) :
37 CORE::rindex($_[0], $_[1], $_[2]) ;
38}
39
4013µs1;