← Index
NYTProf Performance Profile   « block view • line view • sub view »
For conv.pl
  Run on Sun Nov 14 22:50:31 2010
Reported on Sun Nov 14 22:51:19 2010

Filename/home/gmc/projects/marcpm/marc-xml/conv.pl
StatementsExecuted 20012 statements in 241ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
50052142.1ms42.1msmain::::CORE:print main::CORE:print (opcode)
1113.04ms136msmain::::BEGIN@3 main::BEGIN@3
1111.04ms1.17msmain::::BEGIN@5 main::BEGIN@5
111292µs292µsMARC::Field::::BEGIN@66MARC::Field::BEGIN@66
10111292µs292µsmro::::method_changed_in mro::method_changed_in (xsub)
10111213µs213µsInternals::::SvREADONLY Internals::SvREADONLY (xsub)
71125µs25µsUNIVERSAL::::isa UNIVERSAL::isa (xsub)
11117µs17µsmain::::CORE:binmode main::CORE:binmode (opcode)
11116µs52µsmain::::BEGIN@4 main::BEGIN@4
1119µs9µsversion::::(bool version::(bool (xsub)
1118µs8µ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
03399µsProfile data that couldn't be associated with a specific line:
# spent 292µs making 1 call to MARC::Field::BEGIN@66 # spent 59µs making 1 call to XML::LibXML::END # spent 48µs making 1 call to MARC::File::XML::DESTROY
1121µs#!/usr/bin/perl
2
33147µs2136ms
# spent 136ms (3.04+133) within main::BEGIN@3 which was called: # once (3.04ms+133ms) by main::RUNTIME at line 3
use MARC::File::XML (BinaryEncoding => 'utf8');
# spent 136ms making 1 call to main::BEGIN@3 # spent 10µs making 1 call to MARC::File::XML::import
4340µs288µs
# spent 52µs (16+36) within main::BEGIN@4 which was called: # once (16µs+36µs) by main::RUNTIME at line 4
use MARC::Record;
# spent 52µs making 1 call to main::BEGIN@4 # spent 36µs making 1 call to Exporter::import
53651µs11.17ms
# spent 1.17ms (1.04+124µs) within main::BEGIN@5 which was called: # once (1.04ms+124µs) by main::RUNTIME at line 5
use MARC::Batch;
# spent 1.17ms making 1 call to main::BEGIN@5
6
7126µs117µsbinmode STDOUT, ':utf8';
# spent 17µs making 1 call to main::CORE:binmode
8
917µs164µsmy $batch = MARC::Batch->new('XML', $ARGV[0]);
# spent 64µs making 1 call to MARC::Batch::new
101136ms500018.1swhile (my $record = $batch->next) {
# spent 18.1s making 5000 calls to MARC::Batch::next, avg 3.62ms/call
1150005.33ms $i++;
12500082.5ms100007.89s print $record->as_usmarc();
# spent 7.85s making 5000 calls to MARC::Record::as_usmarc, avg 1.57ms/call # spent 41.1ms making 5000 calls to main::CORE:print, avg 8µs/call
1350009.60ms5953µs if ($i % 1000 == 0) {
# spent 953µs making 5 calls to main::CORE:print, avg 191µs/call
14 print STDERR "$i ", scalar(localtime), "\n";
15 }
1650006.36ms last if $i == 5000;
17}
18
- -
 
# spent 213µs within Internals::SvREADONLY which was called 101 times, avg 2µs/call: # 101 times (213µs+0s) by constant::import at line 111 of constant.pm, avg 2µs/call
sub Internals::SvREADONLY; # xsub
# spent 25µs within UNIVERSAL::isa which was called 7 times, avg 4µs/call: # 7 times (25µs+0s) by base::import at line 80 of base.pm, avg 4µs/call
sub UNIVERSAL::isa; # xsub
# spent 17µs within main::CORE:binmode which was called: # once (17µs+0s) by main::RUNTIME at line 7
sub main::CORE:binmode; # opcode
# spent 42.1ms within main::CORE:print which was called 5005 times, avg 8µs/call: # 5000 times (41.1ms+0s) by main::RUNTIME at line 12, avg 8µs/call # 5 times (953µs+0s) by main::RUNTIME at line 13, avg 191µs/call
sub main::CORE:print; # opcode
# spent 292µs within mro::method_changed_in which was called 101 times, avg 3µs/call: # 101 times (292µ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 8µs within version::(cmp which was called: # once (8µs+0s) by DynaLoader::BEGIN@24 at line 50 of Config.pm
sub version::(cmp; # xsub