| Filename | /usr/local/lib/perl5/5.36/mach/Scalar/Util.pm |
| Statements | Executed 12 statements in 384µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 13µs | 16µs | Scalar::Util::BEGIN@9 |
| 1 | 1 | 1 | 7µs | 25µs | Scalar::Util::BEGIN@10 |
| 0 | 0 | 0 | 0s | 0s | Scalar::Util::export_fail |
| 0 | 0 | 0 | 0s | 0s | Scalar::Util::set_prototype |
| 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 | 28µs | 2 | 18µs | # spent 16µs (13+3) within Scalar::Util::BEGIN@9 which was called:
# once (13µs+3µs) by DBI::BEGIN@174 at line 9 # spent 16µs making 1 call to Scalar::Util::BEGIN@9
# spent 3µs making 1 call to strict::import |
| 10 | 2 | 228µs | 2 | 43µs | # spent 25µs (7+18) within Scalar::Util::BEGIN@10 which was called:
# once (7µs+18µs) by DBI::BEGIN@174 at line 10 # spent 25µs making 1 call to Scalar::Util::BEGIN@10
# spent 18µs making 1 call to warnings::import |
| 11 | 1 | 700ns | require Exporter; | ||
| 12 | |||||
| 13 | 1 | 8µs | our @ISA = qw(Exporter); | ||
| 14 | 1 | 5µ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 | 400ns | our $VERSION = "1.62"; | ||
| 21 | 1 | 1µs | $VERSION =~ tr/_//d; | ||
| 22 | |||||
| 23 | 1 | 95µs | require List::Util; # List::Util loads the XS | ||
| 24 | 1 | 14µs | 1 | 6µs | List::Util->VERSION( $VERSION ); # Ensure we got the right XS version (RT#100863) # spent 6µ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__ |