← Index
NYTProf Performance Profile   « block view • line view • sub view »
For conv.pl
  Run on Sun Nov 14 22:06:10 2010
Reported on Sun Nov 14 22:07:08 2010

Filename/usr/share/perl/5.10/bytes_heavy.pl
StatementsExecuted 79548 statements in 335ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
7954122248ms248msbytes::::lengthbytes::length
11115µs21µsbytes::::BEGIN@4bytes::BEGIN@4
11113µs16µsbytes::::BEGIN@22bytes::BEGIN@22
11113µs17µsbytes::::BEGIN@34bytes::BEGIN@34
11112µs15µsbytes::::BEGIN@9bytes::BEGIN@9
11112µs16µsbytes::::BEGIN@27bytes::BEGIN@27
11112µs17µsbytes::::BEGIN@17bytes::BEGIN@17
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 248ms within bytes::length which was called 79541 times, avg 3µs/call: # 79540 times (248ms+0s) by MARC::File::USMARC::_build_tag_directory at line 276 of MARC/File/USMARC.pm, avg 3µs/call # once (3µs+0s) by MARC::File::USMARC::_build_tag_directory at line 17 of bytes.pm
sub length (_) {
4164µs227µs
# spent 21µs (15+6) within bytes::BEGIN@4 which was called: # once (15µs+6µs) by bytes::AUTOLOAD at line 4
BEGIN { bytes::import() }
# spent 21µs making 1 call to bytes::BEGIN@4 # spent 6µs making 1 call to bytes::import
579541335ms return CORE::length($_[0]);
6}
7
8sub substr ($$;$$) {
9193µs218µs
# spent 15µs (12+3) within bytes::BEGIN@9 which was called: # once (12µs+3µs) by bytes::AUTOLOAD at line 9
BEGIN { bytes::import() }
# spent 15µs making 1 call to bytes::BEGIN@9 # spent 3µ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 (_) {
17169µs222µs
# spent 17µs (12+5) within bytes::BEGIN@17 which was called: # once (12µs+5µs) by bytes::AUTOLOAD at line 17
BEGIN { bytes::import() }
# spent 17µs making 1 call to bytes::BEGIN@17 # spent 5µs making 1 call to bytes::import
18 return CORE::ord($_[0]);
19}
20
21sub chr (_) {
22166µs219µs
# spent 16µs (13+3) within bytes::BEGIN@22 which was called: # once (13µs+3µs) by bytes::AUTOLOAD at line 22
BEGIN { bytes::import() }
# spent 16µs making 1 call to bytes::BEGIN@22 # spent 3µs making 1 call to bytes::import
23 return CORE::chr($_[0]);
24}
25
26sub index ($$;$) {
27188µs220µs
# spent 16µs (12+4) within bytes::BEGIN@27 which was called: # once (12µs+4µs) by bytes::AUTOLOAD at line 27
BEGIN { bytes::import() }
# spent 16µs making 1 call to bytes::BEGIN@27 # spent 4µ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 ($$;$) {
34164µs221µs
# spent 17µs (13+4) within bytes::BEGIN@34 which was called: # once (13µs+4µs) by bytes::AUTOLOAD at line 34
BEGIN { bytes::import() }
# spent 17µs making 1 call to bytes::BEGIN@34 # spent 4µs making 1 call to bytes::import
35 return
36 @_ == 2 ? CORE::rindex($_[0], $_[1]) :
37 CORE::rindex($_[0], $_[1], $_[2]) ;
38}
39
4014µs1;