Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm |
Statements | Executed 120 statements in 1.95ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 2 | 1 | 5.50ms | 8.43ms | _path | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 1.54ms | 3.76ms | BEGIN@237 | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 390µs | 4.84ms | BEGIN@234 | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 320µs | 751µs | BEGIN@235 | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 36µs | 107µs | __ANON__[:676] | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 33µs | 118ms | _get_cached_dist_dir_result | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 25µs | 36µs | build_dist_file | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 20µs | 20µs | import | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 17µs | 17µs | BEGIN@1 | Pod::Wordlist::
1 | 1 | 1 | 13µs | 118ms | __ANON__[:682] | File::ShareDir::ProjectDistDir::
6 | 6 | 1 | 12µs | 12µs | _get_defaults | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 9µs | 23µs | BEGIN@257 | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 9µs | 11µs | BEGIN@4.5 | Pod::Wordlist::
1 | 1 | 1 | 8µs | 10µs | CORE:ftis (opcode) | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 8µs | 124µs | BEGIN@236 | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 7µs | 9µs | CORE:ftdir (opcode) | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 7µs | 20µs | BEGIN@2.3 | Pod::Wordlist::
1 | 1 | 1 | 7µs | 13µs | BEGIN@3.4 | Pod::Wordlist::
1 | 1 | 1 | 7µs | 8µs | CORE:fteread (opcode) | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 5µs | 5µs | _wrap_return | File::ShareDir::ProjectDistDir::
1 | 1 | 1 | 1µs | 1µs | _debug | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | __ANON__[:260] | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | __ANON__[:593] | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | __ANON__[:598] | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | __ANON__[:688] | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | _carp | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | _croak | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | _need_pathclass | File::ShareDir::ProjectDistDir::
0 | 0 | 0 | 0s | 0s | build_dist_dir | File::ShareDir::ProjectDistDir::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 39µs | 1 | 17µs | # spent 17µs within Pod::Wordlist::BEGIN@1 which was called:
# once (17µs+0s) by Pod::Wordlist::BEGIN@5 at line 1 # spent 17µs making 1 call to Pod::Wordlist::BEGIN@1 |
2 | 2 | 19µs | 2 | 33µs | # spent 20µs (7+13) within Pod::Wordlist::BEGIN@2.3 which was called:
# once (7µs+13µs) by Pod::Wordlist::BEGIN@5 at line 2 # spent 20µs making 1 call to Pod::Wordlist::BEGIN@2.3
# spent 13µs making 1 call to strict::import |
3 | 2 | 18µs | 2 | 19µs | # spent 13µs (7+6) within Pod::Wordlist::BEGIN@3.4 which was called:
# once (7µs+6µs) by Pod::Wordlist::BEGIN@5 at line 3 # spent 13µs making 1 call to Pod::Wordlist::BEGIN@3.4
# spent 6µs making 1 call to warnings::import |
4 | 2 | 101µs | 2 | 14µs | # spent 11µs (9+3) within Pod::Wordlist::BEGIN@4.5 which was called:
# once (9µs+3µs) by Pod::Wordlist::BEGIN@5 at line 4 # spent 11µs making 1 call to Pod::Wordlist::BEGIN@4.5
# spent 3µs making 1 call to utf8::import |
5 | |||||
6 | package File::ShareDir::ProjectDistDir; | ||||
7 | 1 | 600ns | $File::ShareDir::ProjectDistDir::VERSION = '1.000002'; | ||
8 | # ABSTRACT: Simple set-and-forget using of a '/share' directory in your projects root | ||||
9 | |||||
10 | 1 | 200ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
11 | |||||
- - | |||||
234 | 2 | 73µs | 1 | 4.84ms | # spent 4.84ms (390µs+4.45) within File::ShareDir::ProjectDistDir::BEGIN@234 which was called:
# once (390µs+4.45ms) by Pod::Wordlist::BEGIN@5 at line 234 # spent 4.84ms making 1 call to File::ShareDir::ProjectDistDir::BEGIN@234 |
235 | 2 | 86µs | 2 | 871µs | # spent 751µs (320+430) within File::ShareDir::ProjectDistDir::BEGIN@235 which was called:
# once (320µs+430µs) by Pod::Wordlist::BEGIN@5 at line 235 # spent 751µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@235
# spent 120µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:337] |
236 | 2 | 25µs | 2 | 240µs | # spent 124µs (8+116) within File::ShareDir::ProjectDistDir::BEGIN@236 which was called:
# once (8µs+116µs) by Pod::Wordlist::BEGIN@5 at line 236 # spent 124µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@236
# spent 116µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:337] |
237 | 2 | 181µs | 1 | 3.76ms | # spent 3.76ms (1.54+2.22) within File::ShareDir::ProjectDistDir::BEGIN@237 which was called:
# once (1.54ms+2.22ms) by Pod::Wordlist::BEGIN@5 at line 237 # spent 3.76ms making 1 call to File::ShareDir::ProjectDistDir::BEGIN@237 |
238 | |||||
239 | 1 | 8µs | 1 | 202µs | my ($exporter) = build_exporter( # spent 202µs making 1 call to Sub::Exporter::build_exporter |
240 | { | ||||
241 | exports => [ dist_dir => \&build_dist_dir, dist_file => \&build_dist_file ], | ||||
242 | groups => { | ||||
243 | all => [qw( dist_dir dist_file )], | ||||
244 | 'default' => [qw( dist_dir dist_file )], | ||||
245 | }, | ||||
246 | collectors => [ 'defaults', ], | ||||
247 | }, | ||||
248 | ); | ||||
249 | 1 | 400ns | my $env_key = 'FILE_SHAREDIR_PROJECTDISTDIR_DEBUG'; | ||
250 | |||||
251 | ## no critic (Subroutines::ProhibitSubroutinePrototypes) | ||||
252 | 1 | 6µs | # spent 1µs within File::ShareDir::ProjectDistDir::_debug which was called:
# once (1µs+0s) by File::ShareDir::ProjectDistDir::_get_cached_dist_dir_result at line 548 | ||
253 | ## use critic | ||||
254 | |||||
255 | 1 | 700ns | if ( $ENV{$env_key} ) { | ||
256 | ## no critic (ProtectPrivateVars,TestingAndDebugging::ProhibitNoWarnings) | ||||
257 | 2 | 1.18ms | 2 | 37µs | # spent 23µs (9+14) within File::ShareDir::ProjectDistDir::BEGIN@257 which was called:
# once (9µs+14µs) by Pod::Wordlist::BEGIN@5 at line 257 # spent 23µs making 1 call to File::ShareDir::ProjectDistDir::BEGIN@257
# spent 14µs making 1 call to warnings::unimport |
258 | *File::ShareDir::ProjectDistDir::_debug = sub ($) { | ||||
259 | *STDERR->printf( qq{[ProjectDistDir] %s\n}, $_[0] ); | ||||
260 | }; | ||||
261 | $Path::IsDev::DEBUG = 1; | ||||
262 | $Path::FindDev::DEBUG = 1; | ||||
263 | } | ||||
264 | |||||
265 | ## no critic (RequireArgUnpacking) | ||||
266 | sub _croak { require Carp; goto &Carp::croak } | ||||
267 | sub _carp { require Carp; goto &Carp::carp } | ||||
268 | |||||
269 | 4 | 76µs | 2 | 46µs | # spent 8.43ms (5.50+2.93) within File::ShareDir::ProjectDistDir::_path which was called 2 times, avg 4.22ms/call:
# once (5.50ms+2.93ms) by File::ShareDir::ProjectDistDir::_get_cached_dist_dir_result at line 549
# once (3µs+0s) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:676] at line 667 # spent 46µs making 2 calls to Path::Tiny::path, avg 23µs/call |
270 | |||||
271 | sub _need_pathclass { | ||||
272 | for my $package ( q[], q[::File], q[::Dir] ) { | ||||
273 | ## no critic (Variables::RequireInitializationForLocalVars) | ||||
274 | local $@ = undef; | ||||
275 | my $code = sprintf 'require %s%s;1', 'Path::Class', $package; | ||||
276 | ## no critic (BuiltinFunctions::ProhibitStringyEval,Lax::ProhibitStringyEval::ExceptForRequire) | ||||
277 | next if eval $code; | ||||
278 | my $err = $@; | ||||
279 | _carp('Path::Class is not installed.'); | ||||
280 | ## no critic (RequireCarping, ErrorHandling::RequireUseOfExceptions) | ||||
281 | die $err; | ||||
282 | } | ||||
283 | return 1; | ||||
284 | } | ||||
285 | |||||
- - | |||||
413 | # spent 20µs within File::ShareDir::ProjectDistDir::import which was called:
# once (20µs+0s) by Pod::Wordlist::BEGIN@5 at line 6 of Pod/Wordlist.pm | ||||
414 | 1 | 1µs | my ( $class, @args ) = @_; | ||
415 | |||||
416 | 1 | 1µs | my ( undef, $xfilename, undef ) = caller; | ||
417 | |||||
418 | 1 | 1µs | my $defaults = { | ||
419 | filename => $xfilename, | ||||
420 | projectdir => 'share', | ||||
421 | pathclass => undef, | ||||
422 | strict => undef, | ||||
423 | }; | ||||
424 | |||||
425 | 1 | 200ns | if ( not @args ) { | ||
426 | @_ = ( $class, ':all', defaults => $defaults ); | ||||
427 | goto $exporter; | ||||
428 | } | ||||
429 | |||||
430 | 1 | 2µs | for ( 0 .. $#args - 1 ) { | ||
431 | 2 | 100ns | my ( $key, $value ); | ||
432 | 2 | 1µs | next unless $key = $args[$_] and $value = $args[ $_ + 1 ]; | ||
433 | |||||
434 | 2 | 400ns | if ( 'defaults' eq $key ) { | ||
435 | 1 | 900ns | $defaults = $value; | ||
436 | 1 | 300ns | undef $args[$_]; | ||
437 | 1 | 200ns | undef $args[ $_ + 1 ]; | ||
438 | 1 | 300ns | next; | ||
439 | } | ||||
440 | 1 | 700ns | for my $setting (qw( projectdir filename distname pathclass pathtiny strict )) { | ||
441 | 6 | 1µs | if ( $key eq $setting and not ref $value ) { | ||
442 | $defaults->{$setting} = $value; | ||||
443 | undef $args[$_]; | ||||
444 | undef $args[ $_ + 1 ]; | ||||
445 | last; | ||||
446 | } | ||||
447 | } | ||||
448 | } | ||||
449 | |||||
450 | 1 | 900ns | $defaults->{filename} = $xfilename if not defined $defaults->{filename}; | ||
451 | 1 | 500ns | $defaults->{projectdir} = 'share' if not defined $defaults->{projectdir}; | ||
452 | |||||
453 | 1 | 200ns | if ( defined $defaults->{pathclass} ) { | ||
454 | _carp( 'Path::Class support depecated and will be removed from a future release.' . ' see Documentation for details' ); | ||||
455 | _need_pathclass(); | ||||
456 | } | ||||
457 | |||||
458 | 1 | 2µs | @_ = ( $class, ( grep { defined } @args ), 'defaults' => $defaults ); | ||
459 | |||||
460 | 1 | 6µs | 1 | 185µs | goto $exporter; # spent 185µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:337] |
461 | } | ||||
462 | |||||
- - | |||||
510 | # spent 12µs within File::ShareDir::ProjectDistDir::_get_defaults which was called 6 times, avg 2µs/call:
# once (2µs+0s) by File::ShareDir::ProjectDistDir::build_dist_file at line 651
# once (2µs+0s) by File::ShareDir::ProjectDistDir::build_dist_file at line 656
# once (2µs+0s) by File::ShareDir::ProjectDistDir::build_dist_file at line 653
# once (2µs+0s) by File::ShareDir::ProjectDistDir::build_dist_file at line 655
# once (2µs+0s) by File::ShareDir::ProjectDistDir::build_dist_file at line 652
# once (2µs+0s) by File::ShareDir::ProjectDistDir::build_dist_file at line 658 | ||||
511 | 6 | 1µs | my ( $field, $arg, $col ) = @_; | ||
512 | 6 | 0s | my $result; | ||
513 | 6 | 3µs | $result = $col->{defaults}->{$field} if $col->{defaults}->{$field}; | ||
514 | 6 | 200ns | $result = $arg->{$field} if $arg->{$field}; | ||
515 | 6 | 18µs | return $result; | ||
516 | } | ||||
517 | |||||
518 | # spent 5µs within File::ShareDir::ProjectDistDir::_wrap_return which was called:
# once (5µs+0s) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:676] at line 675 | ||||
519 | 1 | 800ns | my ( $type, $value ) = @_; | ||
520 | 1 | 300ns | if ( not $type ) { | ||
521 | return $value unless ref $value; | ||||
522 | return "$value"; | ||||
523 | } | ||||
524 | 1 | 700ns | if ( 'pathtiny' eq $type ) { | ||
525 | 1 | 5µs | return $value if 'Path::Tiny' eq ref $value; | ||
526 | return _path($value); | ||||
527 | } | ||||
528 | if ( 'pathclassdir' eq $type ) { | ||||
529 | return $value if 'Path::Class::Dir' eq ref $value; | ||||
530 | _need_pathclass; | ||||
531 | return Path::Class::Dir->new("$value"); | ||||
532 | } | ||||
533 | if ( 'pathclassfile' eq $type ) { | ||||
534 | return $value if 'Path::Class::File' eq ref $value; | ||||
535 | _need_pathclass; | ||||
536 | return Path::Class::File->new("$value"); | ||||
537 | } | ||||
538 | return _croak("Unknown return type $type"); | ||||
539 | } | ||||
540 | |||||
541 | 1 | 100ns | our %DIST_DIR_CACHE; | ||
542 | |||||
543 | # spent 118ms (33µs+118) within File::ShareDir::ProjectDistDir::_get_cached_dist_dir_result which was called:
# once (33µs+118ms) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:682] at line 680 | ||||
544 | 1 | 1µs | my ( undef, $filename, $projectdir, $distname, $strict ) = @_; | ||
545 | 1 | 300ns | if ( defined $DIST_DIR_CACHE{$distname} ) { | ||
546 | return $DIST_DIR_CACHE{$distname}; | ||||
547 | } | ||||
548 | 1 | 2µs | 1 | 1µs | _debug( 'Working on: ' . $filename ); # spent 1µs making 1 call to File::ShareDir::ProjectDistDir::_debug |
549 | 1 | 7µs | 3 | 118ms | my $dev = find_dev( _path($filename)->parent ); # spent 109ms making 1 call to Path::FindDev::__ANON__[Path/FindDev.pm:81]
# spent 8.43ms making 1 call to File::ShareDir::ProjectDistDir::_path
# spent 68µs making 1 call to Path::Tiny::parent |
550 | |||||
551 | 1 | 400ns | if ( not defined $dev ) { | ||
552 | ## no critic (Variables::ProhibitPackageVars) | ||||
553 | 1 | 600ns | local $Carp::CarpLevel = $Carp::CarpLevel + 1; | ||
554 | 1 | 7µs | 1 | 82µs | return File::ShareDir::dist_dir($distname); # spent 82µs making 1 call to File::ShareDir::dist_dir |
555 | } | ||||
556 | |||||
557 | my $devel_share_dir = $dev->child($projectdir); | ||||
558 | |||||
559 | if ($strict) { | ||||
560 | $devel_share_dir = $devel_share_dir->child( 'dist', $distname ); | ||||
561 | } | ||||
562 | if ( -d $devel_share_dir ) { | ||||
563 | _debug( 'ISDEV : exists : <devroot>/' . $devel_share_dir->relative($dev) ); | ||||
564 | return ( $DIST_DIR_CACHE{$distname} = $devel_share_dir ); | ||||
565 | } | ||||
566 | _debug( 'ISPROD: does not exist : <devroot>/' . $devel_share_dir->relative($dev) ); | ||||
567 | ## no critic (Variables::ProhibitPackageVars) | ||||
568 | local $Carp::CarpLevel = $Carp::CarpLevel + 1; | ||||
569 | return File::ShareDir::dist_dir($distname); | ||||
570 | } | ||||
571 | |||||
572 | sub build_dist_dir { | ||||
573 | my ( $class, undef, $arg, $col ) = @_; | ||||
574 | |||||
575 | my $projectdir = _get_defaults( projectdir => $arg, $col ); | ||||
576 | my $pathclass = _get_defaults( pathclass => $arg, $col ); | ||||
577 | my $pathtiny = _get_defaults( pathtiny => $arg, $col ); | ||||
578 | my $strict = _get_defaults( strict => $arg, $col ); | ||||
579 | my $filename = _get_defaults( filename => $arg, $col ); | ||||
580 | |||||
581 | my $wrap_return_type; | ||||
582 | |||||
583 | if ($pathclass) { $wrap_return_type = 'pathclassdir' } | ||||
584 | if ($pathtiny) { $wrap_return_type = 'pathtiny' } | ||||
585 | |||||
586 | my $distname = _get_defaults( distname => $arg, $col ); | ||||
587 | |||||
588 | if ( not $distname ) { | ||||
589 | return sub { | ||||
590 | my ($udistname) = @_; | ||||
591 | my $distdir = $class->_get_cached_dist_dir_result( $filename, $projectdir, $udistname, $strict ); | ||||
592 | return _wrap_return( $wrap_return_type, $distdir ); | ||||
593 | }; | ||||
594 | } | ||||
595 | return sub { | ||||
596 | my $distdir = $class->_get_cached_dist_dir_result( $filename, $projectdir, $distname, $strict ); | ||||
597 | return _wrap_return( $wrap_return_type, $distdir ); | ||||
598 | }; | ||||
599 | } | ||||
600 | |||||
- - | |||||
648 | # spent 36µs (25+11) within File::ShareDir::ProjectDistDir::build_dist_file which was called:
# once (25µs+11µs) by Sub::Exporter::default_generator at line 419 of Sub/Exporter.pm | ||||
649 | 1 | 500ns | my ( $class, undef, $arg, $col ) = @_; | ||
650 | |||||
651 | 1 | 1µs | 1 | 2µs | my $projectdir = _get_defaults( projectdir => $arg, $col ); # spent 2µs making 1 call to File::ShareDir::ProjectDistDir::_get_defaults |
652 | 1 | 900ns | 1 | 2µs | my $pathclass = _get_defaults( pathclass => $arg, $col ); # spent 2µs making 1 call to File::ShareDir::ProjectDistDir::_get_defaults |
653 | 1 | 800ns | 1 | 2µs | my $pathtiny = _get_defaults( pathtiny => $arg, $col ); # spent 2µs making 1 call to File::ShareDir::ProjectDistDir::_get_defaults |
654 | |||||
655 | 1 | 900ns | 1 | 2µs | my $strict = _get_defaults( strict => $arg, $col ); # spent 2µs making 1 call to File::ShareDir::ProjectDistDir::_get_defaults |
656 | 1 | 900ns | 1 | 2µs | my $filename = _get_defaults( filename => $arg, $col ); # spent 2µs making 1 call to File::ShareDir::ProjectDistDir::_get_defaults |
657 | |||||
658 | 1 | 900ns | 1 | 2µs | my $distname = _get_defaults( distname => $arg, $col ); # spent 2µs making 1 call to File::ShareDir::ProjectDistDir::_get_defaults |
659 | |||||
660 | 1 | 0s | my $wrap_return_type; | ||
661 | |||||
662 | 1 | 0s | if ($pathclass) { $wrap_return_type = 'pathclassfile' } | ||
663 | 1 | 200ns | if ($pathtiny) { $wrap_return_type = 'pathtiny' } | ||
664 | |||||
665 | # spent 107µs (36+72) within File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:676] which was called:
# once (36µs+72µs) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:682] at line 681 | ||||
666 | 1 | 800ns | my ( $distdir, $wanted_file ) = @_; | ||
667 | 1 | 4µs | 2 | 24µs | my $child = _path($distdir)->child($wanted_file); # spent 22µs making 1 call to Path::Tiny::child
# spent 3µs making 1 call to File::ShareDir::ProjectDistDir::_path |
668 | 1 | 12µs | 2 | 11µs | return unless -e $child; # spent 10µs making 1 call to File::ShareDir::ProjectDistDir::CORE:ftis
# spent 1µs making 1 call to Path::Tiny::__ANON__[Path/Tiny.pm:31] |
669 | 1 | 10µs | 2 | 10µs | if ( -d $child ) { # spent 9µs making 1 call to File::ShareDir::ProjectDistDir::CORE:ftdir
# spent 1µs making 1 call to Path::Tiny::__ANON__[Path/Tiny.pm:31] |
670 | return _croak("Found dist_file '$child', but is a dir"); | ||||
671 | } | ||||
672 | 1 | 10µs | 2 | 9µs | if ( not -r $child ) { # spent 8µs making 1 call to File::ShareDir::ProjectDistDir::CORE:fteread
# spent 1µs making 1 call to Path::Tiny::__ANON__[Path/Tiny.pm:31] |
673 | return _croak("File '$child', no read permissions"); | ||||
674 | } | ||||
675 | 1 | 6µs | 1 | 5µs | return _wrap_return( $wrap_return_type, $child ); # spent 5µs making 1 call to File::ShareDir::ProjectDistDir::_wrap_return |
676 | 1 | 2µs | }; | ||
677 | 1 | 100ns | if ( not $distname ) { | ||
678 | # spent 118ms (13µs+118) within File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:682] which was called:
# once (13µs+118ms) by Pod::Spell::BEGIN@10 at line 22 of Pod/Wordlist.pm | ||||
679 | 1 | 700ns | my ( $udistname, $wanted_file ) = @_; | ||
680 | 1 | 2µs | 1 | 118ms | my $distdir = $class->_get_cached_dist_dir_result( $filename, $projectdir, $udistname, $strict ); # spent 118ms making 1 call to File::ShareDir::ProjectDistDir::_get_cached_dist_dir_result |
681 | 1 | 6µs | 1 | 107µs | return $check_file->( $distdir, $wanted_file ); # spent 107µs making 1 call to File::ShareDir::ProjectDistDir::__ANON__[File/ShareDir/ProjectDistDir.pm:676] |
682 | 1 | 5µs | }; | ||
683 | } | ||||
684 | return sub { | ||||
685 | my ($wanted_file) = @_; | ||||
686 | my $distdir = $class->_get_cached_dist_dir_result( $filename, $projectdir, $distname, $strict ); | ||||
687 | return $check_file->( $distdir, $wanted_file ); | ||||
688 | }; | ||||
689 | } | ||||
690 | |||||
691 | 1 | 7µs | 1; | ||
692 | |||||
693 | __END__ | ||||
# spent 9µs (7+1) within File::ShareDir::ProjectDistDir::CORE:ftdir which was called:
# once (7µs+1µs) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:676] at line 669 | |||||
# spent 8µs (7+1) within File::ShareDir::ProjectDistDir::CORE:fteread which was called:
# once (7µs+1µs) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:676] at line 672 | |||||
# spent 10µs (8+1) within File::ShareDir::ProjectDistDir::CORE:ftis which was called:
# once (8µs+1µs) by File::ShareDir::ProjectDistDir::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/File/ShareDir/ProjectDistDir.pm:676] at line 668 |