← Index
NYTProf Performance Profile   « line view »
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:08 2016

Filename/usr/share/perl5/Devel/GlobalDestruction.pm
StatementsExecuted 12 statements in 359µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111994µs1.18msDevel::GlobalDestruction::::BEGIN@8Devel::GlobalDestruction::BEGIN@8
11114µs28µsDevel::GlobalDestruction::::BEGIN@3Devel::GlobalDestruction::BEGIN@3
11111µs22µsDevel::GlobalDestruction::::BEGIN@23Devel::GlobalDestruction::BEGIN@23
1118µs14µ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
3229µs242µs
# spent 28µs (14+14) within Devel::GlobalDestruction::BEGIN@3 which was called: # once (14µs+14µs) by Moo::_Utils::BEGIN@14 at line 3
use strict;
# spent 28µs making 1 call to Devel::GlobalDestruction::BEGIN@3 # spent 14µs making 1 call to strict::import
4258µs218µs
# spent 14µs (8+5) within Devel::GlobalDestruction::BEGIN@4 which was called: # once (8µs+5µs) by Moo::_Utils::BEGIN@14 at line 4
use warnings;
# spent 14µs making 1 call to Devel::GlobalDestruction::BEGIN@4 # spent 5µs making 1 call to warnings::import
5
61700nsour $VERSION = '0.12';
7
8111µs192µs
# spent 1.18ms (994µs+183µs) within Devel::GlobalDestruction::BEGIN@8 which was called: # once (994µs+183µs) by Moo::_Utils::BEGIN@14 at line 11
use Sub::Exporter::Progressive -setup => {
# spent 92µs making 1 call to Sub::Exporter::Progressive::import
9 exports => [ qw(in_global_destruction) ],
10 groups => { default => [ -all ] },
111151µs11.18ms};
# spent 1.18ms making 1 call to Devel::GlobalDestruction::BEGIN@8
12
13# we run 5.14+ - everything is in core
14#
1512µsif (defined ${^GLOBAL_PHASE}) {
16132µ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;
23271µs234µs
# spent 22µs (11+11) within Devel::GlobalDestruction::BEGIN@23 which was called: # once (11µs+11µs) by Moo::_Utils::BEGIN@14 at line 23
no warnings 'once';
# spent 22µs making 1 call to Devel::GlobalDestruction::BEGIN@23 # spent 12µ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
3816µs1; # keep require happy
39
40
41__END__