← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:45:35 2015

Filename/Users/ap13/perl5/lib/perl5/Devel/GlobalDestruction.pm
StatementsExecuted 12 statements in 508µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.30ms1.56msDevel::GlobalDestruction::::BEGIN@8Devel::GlobalDestruction::BEGIN@8
11116µs35µsDevel::GlobalDestruction::::BEGIN@3Devel::GlobalDestruction::BEGIN@3
11114µs34µsDevel::GlobalDestruction::::BEGIN@23Devel::GlobalDestruction::BEGIN@23
11111µs16µsDevel::GlobalDestruction::::BEGIN@4Devel::GlobalDestruction::BEGIN@4
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Devel::GlobalDestruction;
2
3237µs254µs
# spent 35µs (16+19) within Devel::GlobalDestruction::BEGIN@3 which was called: # once (16µs+19µs) by Class::MOP::Package::BEGIN@8 at line 3
use strict;
# spent 35µs making 1 call to Devel::GlobalDestruction::BEGIN@3 # spent 19µs making 1 call to strict::import
4290µs222µs
# spent 16µs (11+5) within Devel::GlobalDestruction::BEGIN@4 which was called: # once (11µs+5µs) by Class::MOP::Package::BEGIN@8 at line 4
use warnings;
# spent 16µs making 1 call to Devel::GlobalDestruction::BEGIN@4 # spent 5µs making 1 call to warnings::import
5
611µsour $VERSION = '0.13';
7
82143µs
# spent 1.56ms (1.30+258µs) within Devel::GlobalDestruction::BEGIN@8 which was called: # once (1.30ms+258µs) by Class::MOP::Package::BEGIN@8 at line 11
use Sub::Exporter::Progressive -setup => {
9 exports => [ qw(in_global_destruction) ],
10 groups => { default => [ -all ] },
11179µs21.69ms};
# spent 1.56ms making 1 call to Devel::GlobalDestruction::BEGIN@8 # spent 131µs making 1 call to Sub::Exporter::Progressive::import
12
13# we run 5.14+ - everything is in core
14#
15245µsif (defined ${^GLOBAL_PHASE}) {
16 eval 'sub in_global_destruction () { ${^GLOBAL_PHASE} eq q[DESTRUCT] }; 1'
# spent 3µs executing statements in string eval
17 or die $@;
18}
19# try to load the xs version if it was compiled
20#
21elsif (eval {
22 require Devel::GlobalDestruction::XS;
23293µs254µs
# spent 34µs (14+20) within Devel::GlobalDestruction::BEGIN@23 which was called: # once (14µs+20µs) by Class::MOP::Package::BEGIN@8 at line 23
no warnings 'once';
# spent 34µs making 1 call to Devel::GlobalDestruction::BEGIN@23 # spent 20µs making 1 call to warnings::unimport
24 *in_global_destruction = \&Devel::GlobalDestruction::XS::in_global_destruction;
25 1;
26}) {
27 # the eval already installed everything, nothing to do
28}
29else {
30 # internally, PL_main_cv is set to Nullcv immediately before entering
31 # global destruction and we can use B to detect that. B::main_cv will
32 # only ever be a B::CV or a B::SPECIAL that is a reference to 0
33 require B;
34 eval 'sub in_global_destruction () { ${B::main_cv()} == 0 }; 1'
35 or die $@;
36}
37
38118µs1; # keep require happy
39
40
41__END__