← Index
NYTProf Performance Profile   « line view »
For split.pl
  Run on Thu Apr 20 02:05:47 2023
Reported on Thu Apr 20 18:31:09 2023

Filename/home/hejohns/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/Util.pm
StatementsExecuted 12 statements in 208µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111111µs11µsScalar::Util::::reftypeScalar::Util::reftype (xsub)
1118µs11µsScalar::Util::::BEGIN@9Scalar::Util::BEGIN@9
1114µs24µsScalar::Util::::BEGIN@10Scalar::Util::BEGIN@10
0000s0sScalar::Util::::export_failScalar::Util::export_fail
0000s0sScalar::Util::::set_prototypeScalar::Util::set_prototype
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
9218µs213µs
# spent 11µs (8+2) within Scalar::Util::BEGIN@9 which was called: # once (8µs+2µs) by File::Temp::BEGIN@153 at line 9
use strict;
# spent 11µs making 1 call to Scalar::Util::BEGIN@9 # spent 2µs making 1 call to strict::import
102124µs243µs
# spent 24µs (4+19) within Scalar::Util::BEGIN@10 which was called: # once (4µs+19µs) by File::Temp::BEGIN@153 at line 10
use warnings;
# spent 24µs making 1 call to Scalar::Util::BEGIN@10 # spent 19µs making 1 call to warnings::import
111500nsrequire Exporter;
12
1316µsour @ISA = qw(Exporter);
1411µsour @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);
201100nsour $VERSION = "1.63";
211800ns$VERSION =~ tr/_//d;
22
23147µsrequire List::Util; # List::Util loads the XS
2417µs13µsList::Util->VERSION( $VERSION ); # Ensure we got the right XS version (RT#100863)
# spent 3µs making 1 call to UNIVERSAL::VERSION
25
26# populating @EXPORT_FAIL is done in the XS code
27sub export_fail {
28 if (grep { /^isvstring$/ } @_ ) {
29 require Carp;
30 Carp::croak("Vstrings are not implemented in this version of perl");
31 }
32
33 @_;
34}
35
36# set_prototype has been moved to Sub::Util with a different interface
37sub set_prototype(&$)
38{
39 my ( $code, $proto ) = @_;
40 return Sub::Util::set_prototype( $proto, $code );
41}
42
4314µs1;
44
45__END__
 
# spent 11µs within Scalar::Util::reftype which was called 11 times, avg 1µs/call: # 11 times (11µs+0s) by Data::Printer::Filter::__ANON__[/home/hejohns/perl5/lib/perl5/Data/Printer/Filter.pm:23] at line 13 of Data/Printer/Filter.pm, avg 1µs/call
sub Scalar::Util::reftype; # xsub