← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:47 2015

Filename/usr/lib/x86_64-linux-gnu/perl/5.20/Scalar/Util.pm
StatementsExecuted 13 statements in 1.22ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs34µsScalar::Util::::BEGIN@9Scalar::Util::BEGIN@9
1113µs3µsScalar::Util::::weakenScalar::Util::weaken (xsub)
1111µs1µsScalar::Util::::reftypeScalar::Util::reftype (xsub)
111500ns500nsScalar::Util::::blessedScalar::Util::blessed (xsub)
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# 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
92274µs250µs
# spent 34µs (18+16) within Scalar::Util::BEGIN@9 which was called: # once (18µs+16µs) by C4::Context::BEGIN@100 at line 9
use strict;
# spent 34µs making 1 call to Scalar::Util::BEGIN@9 # spent 16µs making 1 call to strict::import
101700nsrequire Exporter;
111913µsrequire List::Util; # List::Util loads the XS
12
1316µsour @ISA = qw(Exporter);
1412µsour @EXPORT_OK = qw(
15 blessed refaddr reftype weaken unweaken isweak
16
17 dualvar isdual isvstring looks_like_number openhandle readonly set_prototype tainted
18);
191300nsour $VERSION = "1.38";
20119µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
21
221200nsour @EXPORT_FAIL;
23
241600nsunless (defined &weaken) {
25 push @EXPORT_FAIL, qw(weaken);
26}
271100nsunless (defined &isweak) {
28 push @EXPORT_FAIL, qw(isweak isvstring);
29}
301200nsunless (defined &isvstring) {
31 push @EXPORT_FAIL, qw(isvstring);
32}
33
34sub export_fail {
35 if (grep { /^(?:weaken|isweak)$/ } @_ ) {
36 require Carp;
37 Carp::croak("Weak references are not implemented in the version of perl");
38 }
39
40 if (grep { /^isvstring$/ } @_ ) {
41 require Carp;
42 Carp::croak("Vstrings are not implemented in the version of perl");
43 }
44
45 @_;
46}
47
4817µs1;
49
50__END__
 
# spent 500ns within Scalar::Util::blessed which was called: # once (500ns+0s) by Sub::Install::_CODELIKE at line 84 of Sub/Install.pm
sub Scalar::Util::blessed; # xsub
# spent 1µs within Scalar::Util::reftype which was called: # once (1µs+0s) by Sub::Install::_CODELIKE at line 84 of Sub/Install.pm
sub Scalar::Util::reftype; # xsub
# spent 3µs within Scalar::Util::weaken which was called: # once (3µs+0s) by C4::Context::BEGIN@100 at line 302 of DBI.pm
sub Scalar::Util::weaken; # xsub