← Index
NYTProf Performance Profile   « line view »
For Makefile.PL
  Run on Sun Mar 1 16:04:44 2015
Reported on Sun Mar 1 16:09:02 2015

FilenameC:/tmp64ng/perl/lib/Scalar/Util.pm
StatementsExecuted 13 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1110s0sScalar::Util::::BEGIN@9Scalar::Util::BEGIN@9
19110s0sScalar::Util::::blessedScalar::Util::blessed (xsub)
0000s0sScalar::Util::::export_failScalar::Util::export_fail
279110s0sScalar::Util::::looks_like_numberScalar::Util::looks_like_number (xsub)
104320s0sScalar::Util::::refaddrScalar::Util::refaddr (xsub)
0000s0sScalar::Util::::set_prototypeScalar::Util::set_prototype
1110s0sScalar::Util::::weakenScalar::Util::weaken (xsub)
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# Copyright (c) 1997-2007 Graham Barr <gbarr@pobox.com>. All rights reserved.
2# This program is free software; you can redistribute it and/or
3# modify it under the same terms as Perl itself.
4#
5# Maintained since 2013 by Paul Evans <leonerd@leonerd.org.uk>
6
7package Scalar::Util;
8
920s20s
# spent 0s within Scalar::Util::BEGIN@9 which was called: # once (0s+0s) by Win32::API::BEGIN@36 at line 9
use strict;
# spent 0s making 1 call to Scalar::Util::BEGIN@9 # spent 0s making 1 call to strict::import
1010srequire Exporter;
1110srequire List::Util; # List::Util loads the XS
12
1310sour @ISA = qw(Exporter);
1410sour @EXPORT_OK = qw(
15 blessed refaddr reftype weaken unweaken isweak
16
17 dualvar isdual isvstring looks_like_number openhandle readonly set_prototype
18 tainted
19);
2010sour $VERSION = "1.41";
2110s$VERSION = eval $VERSION;
# spent 0s executing statements in string eval
22
2310sour @EXPORT_FAIL;
24
2510sunless (defined &weaken) {
26 push @EXPORT_FAIL, qw(weaken);
27}
2810sunless (defined &isweak) {
29 push @EXPORT_FAIL, qw(isweak isvstring);
30}
3110sunless (defined &isvstring) {
32 push @EXPORT_FAIL, qw(isvstring);
33}
34
35sub export_fail {
36 if (grep { /^(?:weaken|isweak)$/ } @_ ) {
37 require Carp;
38 Carp::croak("Weak references are not implemented in the version of perl");
39 }
40
41 if (grep { /^isvstring$/ } @_ ) {
42 require Carp;
43 Carp::croak("Vstrings are not implemented in the version of perl");
44 }
45
46 @_;
47}
48
49# set_prototype has been moved to Sub::Util with a different interface
50sub set_prototype(&$)
51{
52 my ( $code, $proto ) = @_;
53 return Sub::Util::set_prototype( $proto, $code );
54}
55
5610s1;
57
58__END__
 
# spent 0s within Scalar::Util::blessed which was called 19 times, avg 0s/call: # 19 times (0s+0s) by JSON::PP::object_to_json at line 319 of JSON/PP.pm, avg 0s/call
sub Scalar::Util::blessed; # xsub
# spent 0s within Scalar::Util::looks_like_number which was called 279 times, avg 0s/call: # 279 times (0s+0s) by CPAN::Meta::YAML::_dump_scalar at line 666 of CPAN/Meta/YAML.pm, avg 0s/call
sub Scalar::Util::looks_like_number; # xsub
# spent 0s within Scalar::Util::refaddr which was called 104 times, avg 0s/call: # 48 times (0s+0s) by CPAN::Meta::YAML::_dump_hash at line 733 of CPAN/Meta/YAML.pm, avg 0s/call # 38 times (0s+0s) by JSON::PP::object_to_json at line 325 of JSON/PP.pm, avg 0s/call # 18 times (0s+0s) by CPAN::Meta::YAML::_dump_array at line 694 of CPAN/Meta/YAML.pm, avg 0s/call
sub Scalar::Util::refaddr; # xsub
# spent 0s within Scalar::Util::weaken which was called: # once (0s+0s) by Win32::API::new at line 221 of Win32/API.pm
sub Scalar::Util::weaken; # xsub