| Filename | /Users/ap13/perl5/lib/perl5/darwin-2level/File/Spec.pm |
| Statements | Executed 11 statements in 333µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 20µs | 39µs | File::Spec::BEGIN@3 |
| 1 | 1 | 1 | 12µs | 81µs | File::Spec::BEGIN@4 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package File::Spec; | ||||
| 2 | |||||
| 3 | 2 | 47µs | 2 | 58µs | # spent 39µs (20+19) within File::Spec::BEGIN@3 which was called:
# once (20µs+19µs) by File::Copy::BEGIN@13 at line 3 # spent 39µs making 1 call to File::Spec::BEGIN@3
# spent 19µs making 1 call to strict::import |
| 4 | 2 | 167µs | 2 | 149µs | # spent 81µs (12+68) within File::Spec::BEGIN@4 which was called:
# once (12µs+68µs) by File::Copy::BEGIN@13 at line 4 # spent 81µs making 1 call to File::Spec::BEGIN@4
# spent 68µs making 1 call to vars::import |
| 5 | |||||
| 6 | 1 | 800ns | $VERSION = '3.47'; | ||
| 7 | 1 | 6µs | $VERSION =~ tr/_//; | ||
| 8 | |||||
| 9 | 1 | 8µ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 | 2µs | my $module = $module{$^O} || 'Unix'; | ||
| 21 | |||||
| 22 | 1 | 81µs | require "File/Spec/$module.pm"; | ||
| 23 | 1 | 6µs | @ISA = ("File::Spec::$module"); | ||
| 24 | |||||
| 25 | 1 | 15µs | 1; | ||
| 26 | |||||
| 27 | __END__ |