Filename | /usr/lib64/perl5/vendor_perl/5.16.0/x86_64-linux/File/Spec.pm |
Statements | Executed 11 statements in 1.23ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 78µs | 177µs | BEGIN@3 | File::Spec::
1 | 1 | 1 | 50µs | 292µs | BEGIN@4 | File::Spec::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package File::Spec; | ||||
2 | |||||
3 | 2 | 206µs | 2 | 276µs | # spent 177µs (78+99) within File::Spec::BEGIN@3 which was called:
# once (78µs+99µs) by FindBin::BEGIN@85 at line 3 # spent 177µs making 1 call to File::Spec::BEGIN@3
# spent 99µs making 1 call to strict::import |
4 | 2 | 497µs | 2 | 535µs | # spent 292µs (50+243) within File::Spec::BEGIN@4 which was called:
# once (50µs+243µs) by FindBin::BEGIN@85 at line 4 # spent 292µs making 1 call to File::Spec::BEGIN@4
# spent 243µs making 1 call to vars::import |
5 | |||||
6 | 1 | 4µs | $VERSION = '3.40'; | ||
7 | 1 | 3µs | $VERSION =~ tr/_//; | ||
8 | |||||
9 | 1 | 24µs | my %module = (MacOS => 'Mac', | ||
10 | MSWin32 => 'Win32', | ||||
11 | os2 => 'OS2', | ||||
12 | VMS => 'VMS', | ||||
13 | epoc => 'Epoc', | ||||
14 | NetWare => 'Win32', # Yes, File::Spec::Win32 works on NetWare. | ||||
15 | symbian => 'Win32', # Yes, File::Spec::Win32 works on symbian. | ||||
16 | dos => 'OS2', # Yes, File::Spec::OS2 works on DJGPP. | ||||
17 | cygwin => 'Cygwin'); | ||||
18 | |||||
19 | |||||
20 | 1 | 10µs | my $module = $module{$^O} || 'Unix'; | ||
21 | |||||
22 | 1 | 394µs | require "File/Spec/$module.pm"; | ||
23 | 1 | 45µs | @ISA = ("File::Spec::$module"); | ||
24 | |||||
25 | 1 | 51µs | 1; | ||
26 | |||||
27 | __END__ |