← Index
NYTProf Performance Profile   « line view »
For index.cgi
  Run on Sat May 9 17:18:47 2020
Reported on Sat May 9 17:19:07 2020

Filename/usr/local/share/perl/5.18.2/Devel/GlobalDestruction.pm
StatementsExecuted 12 statements in 427µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.19ms5.32msDevel::GlobalDestruction::::BEGIN@8Devel::GlobalDestruction::BEGIN@8
11141µs48µsDevel::GlobalDestruction::::BEGIN@4Devel::GlobalDestruction::BEGIN@4
11113µs30µsDevel::GlobalDestruction::::BEGIN@3Devel::GlobalDestruction::BEGIN@3
11111µs25µsDevel::GlobalDestruction::::BEGIN@23Devel::GlobalDestruction::BEGIN@23
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
3261µs248µs
# spent 30µs (13+18) within Devel::GlobalDestruction::BEGIN@3 which was called: # once (13µs+18µs) by Moo::_Utils::BEGIN@26 at line 3
use strict;
# spent 30µs making 1 call to Devel::GlobalDestruction::BEGIN@3 # spent 18µs making 1 call to strict::import
4269µs254µs
# spent 48µs (41+7) within Devel::GlobalDestruction::BEGIN@4 which was called: # once (41µs+7µs) by Moo::_Utils::BEGIN@26 at line 4
use warnings;
# spent 48µs making 1 call to Devel::GlobalDestruction::BEGIN@4 # spent 7µs making 1 call to warnings::import
5
61800nsour $VERSION = '0.13';
7
8114µs1124µs
# spent 5.32ms (1.19+4.13) within Devel::GlobalDestruction::BEGIN@8 which was called: # once (1.19ms+4.13ms) by Moo::_Utils::BEGIN@26 at line 11
use Sub::Exporter::Progressive -setup => {
# spent 124µs making 1 call to Sub::Exporter::Progressive::import
9 exports => [ qw(in_global_destruction) ],
10 groups => { default => [ -all ] },
111159µs15.32ms};
# spent 5.32ms making 1 call to Devel::GlobalDestruction::BEGIN@8
12
13# we run 5.14+ - everything is in core
14#
1512µsif (defined ${^GLOBAL_PHASE}) {
16136µs eval 'sub in_global_destruction () { ${^GLOBAL_PHASE} eq q[DESTRUCT] }; 1'
# spent 2µ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;
23280µs238µs
# spent 25µs (11+13) within Devel::GlobalDestruction::BEGIN@23 which was called: # once (11µs+13µs) by Moo::_Utils::BEGIN@26 at line 23
no warnings 'once';
# spent 25µs making 1 call to Devel::GlobalDestruction::BEGIN@23 # spent 13µ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
3817µs1; # keep require happy
39
40
41__END__