Filename | /home/hejohns/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/Util.pm |
Statements | Executed 12 statements in 208µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
11 | 1 | 1 | 11µs | 11µs | reftype (xsub) | Scalar::Util::
1 | 1 | 1 | 8µs | 11µs | BEGIN@9 | Scalar::Util::
1 | 1 | 1 | 4µs | 24µs | BEGIN@10 | Scalar::Util::
0 | 0 | 0 | 0s | 0s | export_fail | Scalar::Util::
0 | 0 | 0 | 0s | 0s | set_prototype | Scalar::Util::
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 | |||||
7 | package Scalar::Util; | ||||
8 | |||||
9 | 2 | 18µs | 2 | 13µ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 # spent 11µs making 1 call to Scalar::Util::BEGIN@9
# spent 2µs making 1 call to strict::import |
10 | 2 | 124µs | 2 | 43µ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 # spent 24µs making 1 call to Scalar::Util::BEGIN@10
# spent 19µs making 1 call to warnings::import |
11 | 1 | 500ns | require Exporter; | ||
12 | |||||
13 | 1 | 6µs | our @ISA = qw(Exporter); | ||
14 | 1 | 1µs | our @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 | ); | ||||
20 | 1 | 100ns | our $VERSION = "1.63"; | ||
21 | 1 | 800ns | $VERSION =~ tr/_//d; | ||
22 | |||||
23 | 1 | 47µs | require List::Util; # List::Util loads the XS | ||
24 | 1 | 7µs | 1 | 3µs | List::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 | ||||
27 | sub 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 | ||||
37 | sub set_prototype(&$) | ||||
38 | { | ||||
39 | my ( $code, $proto ) = @_; | ||||
40 | return Sub::Util::set_prototype( $proto, $code ); | ||||
41 | } | ||||
42 | |||||
43 | 1 | 4µs | 1; | ||
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 |