| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/FindDev.pm |
| Statements | Executed 25 statements in 371µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 779µs | 109ms | Path::FindDev::__ANON__[:81] |
| 1 | 1 | 1 | 16µs | 16µs | File::ShareDir::ProjectDistDir::BEGIN@1.6 |
| 1 | 1 | 1 | 10µs | 249µs | Path::FindDev::BEGIN@57 |
| 1 | 1 | 1 | 8µs | 9µs | File::ShareDir::ProjectDistDir::BEGIN@4.9 |
| 2 | 2 | 2 | 8µs | 8µs | Path::FindDev::_build_find_dev |
| 1 | 1 | 1 | 8µs | 12µs | File::ShareDir::ProjectDistDir::BEGIN@3.8 |
| 1 | 1 | 1 | 7µs | 19µs | File::ShareDir::ProjectDistDir::BEGIN@2.7 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 41µs | 1 | 16µs | # spent 16µs within File::ShareDir::ProjectDistDir::BEGIN@1.6 which was called:
# once (16µs+0s) by File::ShareDir::ProjectDistDir::BEGIN@235 at line 1 # spent 16µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@1.6 |
| 2 | 2 | 20µs | 2 | 32µs | # spent 19µs (7+12) within File::ShareDir::ProjectDistDir::BEGIN@2.7 which was called:
# once (7µs+12µs) by File::ShareDir::ProjectDistDir::BEGIN@235 at line 2 # spent 19µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@2.7
# spent 12µs making 1 call to strict::import |
| 3 | 2 | 20µs | 2 | 16µs | # spent 12µs (8+4) within File::ShareDir::ProjectDistDir::BEGIN@3.8 which was called:
# once (8µs+4µs) by File::ShareDir::ProjectDistDir::BEGIN@235 at line 3 # spent 12µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@3.8
# spent 4µs making 1 call to warnings::import |
| 4 | 2 | 72µs | 2 | 11µs | # spent 9µs (8+1) within File::ShareDir::ProjectDistDir::BEGIN@4.9 which was called:
# once (8µs+1µs) by File::ShareDir::ProjectDistDir::BEGIN@235 at line 4 # spent 9µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@4.9
# spent 2µs making 1 call to utf8::import |
| 5 | |||||
| 6 | package Path::FindDev; | ||||
| 7 | 1 | 600ns | $Path::FindDev::VERSION = '0.5.0'; | ||
| 8 | # ABSTRACT: Find a development path somewhere in an upper hierarchy. | ||||
| 9 | |||||
| 10 | 1 | 200ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
| 11 | |||||
| - - | |||||
| 57 | 2 | 128µs | 2 | 488µs | # spent 249µs (10+239) within Path::FindDev::BEGIN@57 which was called:
# once (10µs+239µs) by File::ShareDir::ProjectDistDir::BEGIN@235 at line 57 # spent 249µs making 1 call to Path::FindDev::BEGIN@57
# spent 239µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:337] |
| 58 | |||||
| - - | |||||
| 70 | # spent 8µs within Path::FindDev::_build_find_dev which was called 2 times, avg 4µs/call:
# once (5µs+0s) by File::ShareDir::ProjectDistDir::BEGIN@235 at line 117
# once (3µs+0s) by Sub::Exporter::default_generator at line 419 of Sub/Exporter.pm | ||||
| 71 | 2 | 1µs | my ( undef, undef, $arg ) = @_; | ||
| 72 | |||||
| 73 | 2 | 200ns | my $finddev_object; | ||
| 74 | # spent 109ms (779µs+109) within Path::FindDev::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/FindDev.pm:81] which was called:
# once (779µs+109ms) by File::ShareDir::ProjectDistDir::_get_cached_dist_dir_result at line 549 of File/ShareDir/ProjectDistDir.pm | ||||
| 75 | 1 | 500ns | my ($path) = @_; | ||
| 76 | 1 | 500ns | $finddev_object ||= do { | ||
| 77 | 1 | 57µs | require Path::FindDev::Object; | ||
| 78 | 1 | 6µs | 1 | 67µs | Path::FindDev::Object->new($arg); # spent 67µs making 1 call to Class::Tiny::Object::new |
| 79 | }; | ||||
| 80 | 1 | 6µs | 1 | 108ms | return $finddev_object->find_dev($path); # spent 108ms making 1 call to Path::FindDev::Object::find_dev |
| 81 | 2 | 12µs | }; | ||
| 82 | } | ||||
| 83 | |||||
| - - | |||||
| 117 | 1 | 3µs | 1 | 5µs | *find_dev = _build_find_dev( __PACKAGE__, 'find_dev', {} ); # spent 5µs making 1 call to Path::FindDev::_build_find_dev |
| 118 | |||||
| 119 | 1 | 3µs | 1; | ||
| 120 | |||||
| 121 | __END__ |