Filename | /usr/lib/perl/5.18/File/Spec/Functions.pm |
Statements | Executed 89 statements in 370µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
38 | 4 | 1 | 86µs | 1.23ms | __ANON__[:43] | File::Spec::Functions::
1 | 1 | 1 | 21µs | 21µs | BEGIN@3 | File::Spec::Functions::
1 | 1 | 1 | 6µs | 14µs | BEGIN@4 | File::Spec::Functions::
1 | 1 | 1 | 5µs | 13µs | BEGIN@42 | File::Spec::Functions::
1 | 1 | 1 | 5µs | 52µs | BEGIN@6 | File::Spec::Functions::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package File::Spec::Functions; | ||||
2 | |||||
3 | 2 | 22µs | 1 | 21µs | # spent 21µs within File::Spec::Functions::BEGIN@3 which was called:
# once (21µs+0s) by Module::Pluggable::Object::BEGIN@6 at line 3 # spent 21µs making 1 call to File::Spec::Functions::BEGIN@3 |
4 | 2 | 21µs | 2 | 23µs | # spent 14µs (6+9) within File::Spec::Functions::BEGIN@4 which was called:
# once (6µs+9µs) by Module::Pluggable::Object::BEGIN@6 at line 4 # spent 14µs making 1 call to File::Spec::Functions::BEGIN@4
# spent 9µs making 1 call to strict::import |
5 | |||||
6 | 2 | 85µs | 2 | 99µs | # spent 52µs (5+47) within File::Spec::Functions::BEGIN@6 which was called:
# once (5µs+47µs) by Module::Pluggable::Object::BEGIN@6 at line 6 # spent 52µs making 1 call to File::Spec::Functions::BEGIN@6
# spent 47µs making 1 call to vars::import |
7 | |||||
8 | 1 | 400ns | $VERSION = '3.40'; | ||
9 | 1 | 300ns | $VERSION =~ tr/_//; | ||
10 | |||||
11 | 1 | 500ns | require Exporter; | ||
12 | |||||
13 | 1 | 4µs | @ISA = qw(Exporter); | ||
14 | |||||
15 | 1 | 1µs | @EXPORT = qw( | ||
16 | canonpath | ||||
17 | catdir | ||||
18 | catfile | ||||
19 | curdir | ||||
20 | rootdir | ||||
21 | updir | ||||
22 | no_upwards | ||||
23 | file_name_is_absolute | ||||
24 | path | ||||
25 | ); | ||||
26 | |||||
27 | 1 | 1µs | @EXPORT_OK = qw( | ||
28 | devnull | ||||
29 | tmpdir | ||||
30 | splitpath | ||||
31 | splitdir | ||||
32 | catpath | ||||
33 | abs2rel | ||||
34 | rel2abs | ||||
35 | case_tolerant | ||||
36 | ); | ||||
37 | |||||
38 | 1 | 2µs | %EXPORT_TAGS = ( ALL => [ @EXPORT_OK, @EXPORT ] ); | ||
39 | |||||
40 | 1 | 600ns | foreach my $meth (@EXPORT, @EXPORT_OK) { | ||
41 | 17 | 63µs | 17 | 28µs | my $sub = File::Spec->can($meth); # spent 28µs making 17 calls to UNIVERSAL::can, avg 2µs/call |
42 | 2 | 46µs | 2 | 21µs | # spent 13µs (5+8) within File::Spec::Functions::BEGIN@42 which was called:
# once (5µs+8µs) by Module::Pluggable::Object::BEGIN@6 at line 42 # spent 13µs making 1 call to File::Spec::Functions::BEGIN@42
# spent 8µs making 1 call to strict::unimport |
43 | 55 | 117µs | 38 | 1.14ms | # spent 1.23ms (86µs+1.14) within File::Spec::Functions::__ANON__[/usr/lib/perl/5.18/File/Spec/Functions.pm:43] which was called 38 times, avg 32µs/call:
# 20 times (38µs+247µs) by Module::Pluggable::Object::search_paths at line 181 of Module/Pluggable/Object.pm, avg 14µs/call
# 6 times (15µs+726µs) by Module::Pluggable::Object::search_paths at line 197 of Module/Pluggable/Object.pm, avg 123µs/call
# 6 times (16µs+163µs) by Module::Pluggable::Object::search_paths at line 204 of Module/Pluggable/Object.pm, avg 30µs/call
# 6 times (18µs+5µs) by Module::Pluggable::Object::search_paths at line 226 of Module/Pluggable/Object.pm, avg 4µs/call # spent 726µs making 6 calls to File::Spec::Unix::abs2rel, avg 121µs/call
# spent 247µs making 20 calls to File::Spec::Unix::catdir, avg 12µs/call
# spent 163µs making 6 calls to File::Spec::Unix::catfile, avg 27µs/call
# spent 5µs making 6 calls to File::Spec::Unix::curdir, avg 767ns/call |
44 | } | ||||
45 | |||||
46 | |||||
47 | 1 | 6µs | 1; | ||
48 | __END__ |