| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/darwin-2level/Mac/SystemDirectory.pm |
| Statements | Executed 78 statements in 3.56ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 55 | 1 | 1 | 2.72ms | 2.72ms | Mac::SystemDirectory::FindDirectory (xsub) |
| 1 | 1 | 1 | 152µs | 3.37ms | Mac::SystemDirectory::BEGIN@7 |
| 64 | 2 | 1 | 32µs | 32µs | Mac::SystemDirectory::CORE:match (opcode) |
| 1 | 1 | 1 | 18µs | 18µs | Mac::SystemDirectory::BEGIN@3 |
| 1 | 1 | 1 | 8µs | 11µs | Mac::SystemDirectory::BEGIN@5 |
| 1 | 1 | 1 | 7µs | 20µs | Mac::SystemDirectory::BEGIN@4 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Mac::SystemDirectory; | ||||
| 2 | |||||
| 3 | 2 | 39µs | 1 | 18µs | # spent 18µs within Mac::SystemDirectory::BEGIN@3 which was called:
# once (18µs+0s) by Path::IsDev::NegativeHeuristic::HomeDir::paths at line 3 # spent 18µs making 1 call to Mac::SystemDirectory::BEGIN@3 |
| 4 | 2 | 20µs | 2 | 32µs | # spent 20µs (7+12) within Mac::SystemDirectory::BEGIN@4 which was called:
# once (7µs+12µs) by Path::IsDev::NegativeHeuristic::HomeDir::paths at line 4 # spent 20µs making 1 call to Mac::SystemDirectory::BEGIN@4
# spent 12µs making 1 call to strict::import |
| 5 | 2 | 111µs | 2 | 15µs | # spent 11µs (8+4) within Mac::SystemDirectory::BEGIN@5 which was called:
# once (8µs+4µs) by Path::IsDev::NegativeHeuristic::HomeDir::paths at line 5 # spent 11µs making 1 call to Mac::SystemDirectory::BEGIN@5
# spent 4µs making 1 call to warnings::import |
| 6 | |||||
| 7 | # spent 3.37ms (152µs+3.21) within Mac::SystemDirectory::BEGIN@7 which was called:
# once (152µs+3.21ms) by Path::IsDev::NegativeHeuristic::HomeDir::paths at line 22 | ||||
| 8 | 1 | 400ns | our $VERSION = '0.06'; | ||
| 9 | 1 | 1µs | our @EXPORT_OK = ('FindDirectory', 'HomeDirectory', 'TemporaryDirectory'); | ||
| 10 | |||||
| 11 | 1 | 600ns | require XSLoader; | ||
| 12 | 1 | 3.19ms | 1 | 3.18ms | XSLoader::load('Mac::SystemDirectory', $VERSION); # spent 3.18ms making 1 call to XSLoader::load |
| 13 | |||||
| 14 | 32 | 65µs | 32 | 12µs | our %EXPORT_TAGS = ( # spent 12µs making 32 calls to Mac::SystemDirectory::CORE:match, avg 391ns/call |
| 15 | 'all' => [ @EXPORT_OK ], | ||||
| 16 | 32 | 67µs | 32 | 19µs | 'DomainMask' => [ grep { /^NS.*DomainMask/ } @EXPORT_OK ], # spent 19µs making 32 calls to Mac::SystemDirectory::CORE:match, avg 606ns/call |
| 17 | 1 | 25µs | 'Directory' => [ grep { /^NS.*Directory/ } @EXPORT_OK ], | ||
| 18 | ); | ||||
| 19 | |||||
| 20 | 1 | 500ns | require Exporter; | ||
| 21 | 1 | 5µs | *import = \&Exporter::import; | ||
| 22 | 1 | 33µs | 1 | 3.37ms | } # spent 3.37ms making 1 call to Mac::SystemDirectory::BEGIN@7 |
| 23 | |||||
| 24 | 1 | 2µs | 1; | ||
| 25 | __END__ | ||||
sub Mac::SystemDirectory::CORE:match; # opcode | |||||
# spent 2.72ms within Mac::SystemDirectory::FindDirectory which was called 55 times, avg 50µs/call:
# 55 times (2.72ms+0s) by File::HomeDir::Darwin::Cocoa::_find_folder at line 118 of File/HomeDir/Darwin/Cocoa.pm, avg 50µs/call |