← 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:07 2010

Filename/home/gmc/projects/marcpm/marc-xml/conv.pl
StatementsExecuted 20012 statements in 240ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
50052152.6ms52.6msmain::::CORE:print main::CORE:print (opcode)
1113.13ms94.8msmain::::BEGIN@3 main::BEGIN@3
111939µs1.07msmain::::BEGIN@5 main::BEGIN@5
291192µs92µsmro::::method_changed_in mro::method_changed_in (xsub)
291166µs66µsInternals::::SvREADONLYInternals::SvREADONLY (xsub)
71127µs27µsUNIVERSAL::::isaUNIVERSAL::isa (xsub)
11118µs18µsmain::::CORE:binmode main::CORE:binmode (opcode)
11117µs59µsmain::::BEGIN@4 main::BEGIN@4
1119µs9µsversion::::(bool version::(bool (xsub)
1119µs9µsversion::::(cmp version::(cmp (xsub)
0000s0smain::::RUNTIME main::RUNTIME
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
0151µsProfile data that couldn't be associated with a specific line:
# spent 51µs making 1 call to MARC::File::XML::DESTROY
116µs#!/usr/bin/perl
2
33152µs294.8ms
# spent 94.8ms (3.13+91.6) within main::BEGIN@3 which was called: # once (3.13ms+91.6ms) by main::RUNTIME at line 3
use MARC::File::XML (BinaryEncoding => 'utf8');
# spent 94.8ms making 1 call to main::BEGIN@3 # spent 13µs making 1 call to MARC::File::XML::import
4340µs2101µs
# spent 59µs (17+42) within main::BEGIN@4 which was called: # once (17µs+42µs) by main::RUNTIME at line 4
use MARC::Record;
# spent 59µs making 1 call to main::BEGIN@4 # spent 42µs making 1 call to Exporter::import
53583µs11.07ms
# spent 1.07ms (939µs+128µs) within main::BEGIN@5 which was called: # once (939µs+128µs) by main::RUNTIME at line 5
use MARC::Batch;
# spent 1.07ms making 1 call to main::BEGIN@5
6
7128µs118µsbinmode STDOUT, ':utf8';
# spent 18µs making 1 call to main::CORE:binmode
8
917µs162µsmy $batch = MARC::Batch->new('XML', $ARGV[0]);
# spent 62µs making 1 call to MARC::Batch::new
1020001240ms500010.5swhile (my $record = $batch->next) {
# spent 10.5s making 5000 calls to MARC::Batch::next, avg 2.10ms/call
11 $i++;
12100007.64s print $record->as_usmarc();
# spent 7.59s making 5000 calls to MARC::Record::as_usmarc, avg 1.52ms/call # spent 50.1ms making 5000 calls to main::CORE:print, avg 10µs/call
1352.49ms if ($i % 1000 == 0) {
# spent 2.49ms making 5 calls to main::CORE:print, avg 498µs/call
14 print STDERR "$i ", scalar(localtime), "\n";
15 }
16 last if $i == 5000;
17}
 
# spent 66µs within Internals::SvREADONLY which was called 29 times, avg 2µs/call: # 29 times (66µs+0s) by constant::import at line 111 of constant.pm, avg 2µs/call
sub Internals::SvREADONLY; # xsub
# spent 27µs within UNIVERSAL::isa which was called 7 times, avg 4µs/call: # 7 times (27µs+0s) by base::import at line 80 of base.pm, avg 4µs/call
sub UNIVERSAL::isa; # xsub
# spent 18µs within main::CORE:binmode which was called: # once (18µs+0s) by main::RUNTIME at line 7
sub main::CORE:binmode; # opcode
# spent 52.6ms within main::CORE:print which was called 5005 times, avg 11µs/call: # 5000 times (50.1ms+0s) by main::RUNTIME at line 12, avg 10µs/call # 5 times (2.49ms+0s) by main::RUNTIME at line 13, avg 498µs/call
sub main::CORE:print; # opcode
# spent 92µs within mro::method_changed_in which was called 29 times, avg 3µs/call: # 29 times (92µs+0s) by constant::import at line 113 of constant.pm, avg 3µs/call
sub mro::method_changed_in; # xsub
# spent 9µs within version::(bool which was called: # once (9µs+0s) by DynaLoader::BEGIN@24 at line 47 of Config.pm
sub version::(bool; # xsub
# spent 9µs within version::(cmp which was called: # once (9µs+0s) by DynaLoader::BEGIN@24 at line 50 of Config.pm
sub version::(cmp; # xsub