Filename | /usr/lib64/perl5/vendor_perl/Scalar/Util.pm |
Statements | Executed 13 statements in 576µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
208 | 2 | 1 | 140µs | 140µs | tainted (xsub) | Scalar::Util::
1 | 1 | 1 | 20µs | 43µs | BEGIN@9 | Scalar::Util::
1 | 1 | 1 | 6µs | 6µs | blessed (xsub) | Scalar::Util::
0 | 0 | 0 | 0s | 0s | export_fail | Scalar::Util::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # Scalar::Util.pm | ||||
2 | # | ||||
3 | # Copyright (c) 1997-2007 Graham Barr <gbarr@pobox.com>. All rights reserved. | ||||
4 | # This program is free software; you can redistribute it and/or | ||||
5 | # modify it under the same terms as Perl itself. | ||||
6 | |||||
7 | package Scalar::Util; | ||||
8 | |||||
9 | 2 | 384µs | 2 | 66µs | # spent 43µs (20+23) within Scalar::Util::BEGIN@9 which was called:
# once (20µs+23µs) by Error::BEGIN@46 at line 9 # spent 43µs making 1 call to Scalar::Util::BEGIN@9
# spent 23µs making 1 call to strict::import |
10 | 1 | 900ns | require Exporter; | ||
11 | 1 | 122µs | require List::Util; # List::Util loads the XS | ||
12 | |||||
13 | 1 | 9µs | our @ISA = qw(Exporter); | ||
14 | 1 | 4µs | our @EXPORT_OK = qw( | ||
15 | blessed | ||||
16 | dualvar | ||||
17 | isdual | ||||
18 | isvstring | ||||
19 | isweak | ||||
20 | looks_like_number | ||||
21 | openhandle | ||||
22 | readonly | ||||
23 | refaddr | ||||
24 | reftype | ||||
25 | set_prototype | ||||
26 | tainted | ||||
27 | weaken | ||||
28 | ); | ||||
29 | 1 | 500ns | our $VERSION = "1.27"; | ||
30 | 1 | 41µs | $VERSION = eval $VERSION; # spent 3µs executing statements in string eval | ||
31 | |||||
32 | 1 | 400ns | our @EXPORT_FAIL; | ||
33 | |||||
34 | 1 | 800ns | unless (defined &weaken) { | ||
35 | push @EXPORT_FAIL, qw(weaken); | ||||
36 | } | ||||
37 | 1 | 200ns | unless (defined &isweak) { | ||
38 | push @EXPORT_FAIL, qw(isweak isvstring); | ||||
39 | } | ||||
40 | 1 | 200ns | unless (defined &isvstring) { | ||
41 | push @EXPORT_FAIL, qw(isvstring); | ||||
42 | } | ||||
43 | |||||
44 | sub export_fail { | ||||
45 | if (grep { /^(?:weaken|isweak)$/ } @_ ) { | ||||
46 | require Carp; | ||||
47 | Carp::croak("Weak references are not implemented in the version of perl"); | ||||
48 | } | ||||
49 | |||||
50 | if (grep { /^isvstring$/ } @_ ) { | ||||
51 | require Carp; | ||||
52 | Carp::croak("Vstrings are not implemented in the version of perl"); | ||||
53 | } | ||||
54 | |||||
55 | @_; | ||||
56 | } | ||||
57 | |||||
58 | 1 | 12µs | 1; | ||
59 | |||||
60 | __END__ | ||||
# spent 6µs within Scalar::Util::blessed which was called:
# once (6µs+0s) by Foswiki::Engine::finalizeBody at line 421 of /var/www/foswikidev/core/lib/Foswiki/Engine.pm | |||||
# spent 140µs within Scalar::Util::tainted which was called 208 times, avg 673ns/call:
# 105 times (98µs+0s) by Foswiki::Func::_checkWTA at line 83 of /var/www/foswikidev/core/lib/Foswiki/Func.pm, avg 937ns/call
# 103 times (42µs+0s) by Foswiki::Func::_checkWTA at line 89 of /var/www/foswikidev/core/lib/Foswiki/Func.pm, avg 403ns/call |