← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:39:01 2010
Reported on Wed Nov 17 22:08:01 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Hash/Util/FieldHash/Compat.pm
StatementsExecuted 37 statements in 1.46ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.69ms3.15msHash::Util::FieldHash::Compat::::BEGIN@8Hash::Util::FieldHash::Compat::BEGIN@8
444197µs239µsHash::Util::FieldHash::Compat::::importHash::Util::FieldHash::Compat::import
11180µs100µsHash::Util::FieldHash::Compat::::BEGIN@5Hash::Util::FieldHash::Compat::BEGIN@5
11157µs6.53msHash::Util::FieldHash::Compat::::BEGIN@10Hash::Util::FieldHash::Compat::BEGIN@10
11140µs109µsHash::Util::FieldHash::Compat::::BEGIN@6Hash::Util::FieldHash::Compat::BEGIN@6
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#!/usr/bin/perl
2
3package Hash::Util::FieldHash::Compat;
4
53103µs2120µs
# spent 100µs (80+20) within Hash::Util::FieldHash::Compat::BEGIN@5 which was called: # once (80µs+20µs) by MooseX::Clone::BEGIN@8 at line 5
use strict;
# spent 100µs making 1 call to Hash::Util::FieldHash::Compat::BEGIN@5 # spent 20µs making 1 call to strict::import
63146µs2177µs
# spent 109µs (40+69) within Hash::Util::FieldHash::Compat::BEGIN@6 which was called: # once (40µs+69µs) by MooseX::Clone::BEGIN@8 at line 6
use warnings;
# spent 109µs making 1 call to Hash::Util::FieldHash::Compat::BEGIN@6 # spent 69µs making 1 call to warnings::import
7
86503µs23.35ms
# spent 3.15ms (1.69+1.46) within Hash::Util::FieldHash::Compat::BEGIN@8 which was called: # once (1.69ms+1.46ms) by MooseX::Clone::BEGIN@8 at line 8
use constant REAL_FIELDHASH => do { local $@; eval { require Hash::Util::FieldHash } };
# spent 3.15ms making 1 call to Hash::Util::FieldHash::Compat::BEGIN@8 # spent 196µs making 1 call to constant::import
9
10
# spent 6.53ms (57µs+6.47) within Hash::Util::FieldHash::Compat::BEGIN@10 which was called: # once (57µs+6.47ms) by MooseX::Clone::BEGIN@8 at line 17
BEGIN {
11116µs if ( REAL_FIELDHASH ) {
1213µs require Hash::Util::FieldHash;
13126µs16.47ms Hash::Util::FieldHash->import(":all");
# spent 6.47ms making 1 call to Exporter::import
14 } else {
15 require Hash::Util::FieldHash::Compat::Heavy;
16 }
171360µs16.53ms}
# spent 6.53ms making 1 call to Hash::Util::FieldHash::Compat::BEGIN@10
18
1914µsour $VERSION = "0.03";
20
21
# spent 239µs (197+43) within Hash::Util::FieldHash::Compat::import which was called 4 times, avg 60µs/call: # once (66µs+9µs) by MooseX::Clone::BEGIN@8 at line 8 of MooseX/Clone.pm # once (44µs+11µs) by KiokuDB::BEGIN@19 at line 19 of KiokuDB.pm # once (43µs+12µs) by KiokuDB::Collapser::Buffer::BEGIN@4 at line 4 of KiokuDB/Collapser/Buffer.pm # once (44µs+11µs) by KiokuDB::LiveObjects::BEGIN@8 at line 8 of KiokuDB/LiveObjects.pm
sub import {
2249µs if ( REAL_FIELDHASH ) {
23416µs my $class = "Hash::Util::FieldHash";
24
25412µs shift @_;
26423µs unshift @_, $class;
27
284229µs8672µs goto $class->can("import");
# spent 630µs making 4 calls to Exporter::import, avg 157µs/call # spent 43µs making 4 calls to UNIVERSAL::can, avg 11µs/call
29 } else {
30 my $class = shift;
31 $class->export_to_level(1, $class, @_);
32 }
33}
34
35111µs__PACKAGE__
36
37__END__