← 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/lib/perl/5.18/Scalar/Util.pm
StatementsExecuted 13 statements in 388µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11632128µs128µsScalar::Util::::weakenScalar::Util::weaken (xsub)
331132µs32µsScalar::Util::::reftypeScalar::Util::reftype (xsub)
173314µs14µsScalar::Util::::blessedScalar::Util::blessed (xsub)
11114µs29µsScalar::Util::::BEGIN@9Scalar::Util::BEGIN@9
0000s0sScalar::Util::::export_failScalar::Util::export_fail
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# Scalar::Util.pm
2#
3# Copyright (c) 1997-2007 Graham Barr <gbarr@pobox.com>. All rights reserved.
4# This program is free software; you can redistribute it and/or
5# modify it under the same terms as Perl itself.
6
7package Scalar::Util;
8
92268µs244µs
# spent 29µs (14+15) within Scalar::Util::BEGIN@9 which was called: # once (14µs+15µs) by main::BEGIN@124 at line 9
use strict;
# spent 29µs making 1 call to Scalar::Util::BEGIN@9 # spent 15µs making 1 call to strict::import
101500nsrequire Exporter;
11184µsrequire List::Util; # List::Util loads the XS
12
1316µsour @ISA = qw(Exporter);
1412µsour @EXPORT_OK = qw(
15 blessed
16 dualvar
17 isdual
18 isvstring
19 isweak
20 looks_like_number
21 openhandle
22 readonly
23 refaddr
24 reftype
25 set_prototype
26 tainted
27 weaken
28);
291300nsour $VERSION = "1.27";
30118µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
31
321200nsour @EXPORT_FAIL;
33
341500nsunless (defined &weaken) {
35 push @EXPORT_FAIL, qw(weaken);
36}
371200nsunless (defined &isweak) {
38 push @EXPORT_FAIL, qw(isweak isvstring);
39}
401200nsunless (defined &isvstring) {
41 push @EXPORT_FAIL, qw(isvstring);
42}
43
44sub export_fail {
45 if (grep { /^(?:weaken|isweak)$/ } @_ ) {
46 require Carp;
47 Carp::croak("Weak references are not implemented in the version of perl");
48 }
49
50 if (grep { /^isvstring$/ } @_ ) {
51 require Carp;
52 Carp::croak("Vstrings are not implemented in the version of perl");
53 }
54
55 @_;
56}
57
5817µs1;
59
60__END__
 
# spent 14µs within Scalar::Util::blessed which was called 17 times, avg 853ns/call: # 9 times (8µs+0s) by Search::Elasticsearch::Util::load_plugin at line 50 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Util.pm, avg 878ns/call # 6 times (4µs+0s) by Method::Generate::Accessor::_generate_call_code at line 437 of Method/Generate/Accessor.pm, avg 633ns/call # 2 times (3µs+0s) by File::Copy::_eq at line 94 of File/Copy.pm, avg 1µs/call
sub Scalar::Util::blessed; # xsub
# spent 32µs within Scalar::Util::reftype which was called 33 times, avg 964ns/call: # 33 times (32µs+0s) by Sub::Install::_CODELIKE at line 84 of /opt/flows/lib/lib/perl5/Sub/Install.pm, avg 964ns/call
sub Scalar::Util::reftype; # xsub
# spent 128µs within Scalar::Util::weaken which was called 116 times, avg 1µs/call: # 54 times (63µs+0s) by Sub::Defer::defer_sub at line 56 of Sub/Defer.pm, avg 1µs/call # 44 times (38µs+0s) by Sub::Quote::quote_sub at line 84 of Sub/Quote.pm, avg 873ns/call # 18 times (26µs+0s) by Sub::Defer::undefer_sub at line 32 of Sub/Defer.pm, avg 1µs/call
sub Scalar::Util::weaken; # xsub