← Index
NYTProf Performance Profile   « line view »
For /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin/perlcritic
  Run on Sat Mar 19 22:12:22 2016
Reported on Sat Mar 19 22:14:12 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/DevDirMarker.pm
StatementsExecuted 50 statements in 382µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
91170µs962µsPath::IsDev::Heuristic::DevDirMarker::::matchesPath::IsDev::Heuristic::DevDirMarker::matches
11124µs24µsModule::Runtime::::BEGIN@1.89 Module::Runtime::BEGIN@1.89
11110µs41µsPath::IsDev::Heuristic::DevDirMarker::::BEGIN@40Path::IsDev::Heuristic::DevDirMarker::BEGIN@40
11110µs15µsModule::Runtime::::BEGIN@3.91 Module::Runtime::BEGIN@3.91
11110µs25µsModule::Runtime::::BEGIN@2.90 Module::Runtime::BEGIN@2.90
9119µs9µsPath::IsDev::Heuristic::DevDirMarker::::filesPath::IsDev::Heuristic::DevDirMarker::files
1119µs11µsModule::Runtime::::BEGIN@4.92 Module::Runtime::BEGIN@4.92
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1253µs124µs
# spent 24µs within Module::Runtime::BEGIN@1.89 which was called: # once (24µs+0s) by Module::Runtime::require_module at line 1
use 5.008; # utf8
# spent 24µs making 1 call to Module::Runtime::BEGIN@1.89
2226µs241µs
# spent 25µs (10+16) within Module::Runtime::BEGIN@2.90 which was called: # once (10µs+16µs) by Module::Runtime::require_module at line 2
use strict;
# spent 25µs making 1 call to Module::Runtime::BEGIN@2.90 # spent 16µs making 1 call to strict::import
3225µs220µs
# spent 15µs (10+5) within Module::Runtime::BEGIN@3.91 which was called: # once (10µs+5µs) by Module::Runtime::require_module at line 3
use warnings;
# spent 15µs making 1 call to Module::Runtime::BEGIN@3.91 # spent 5µs making 1 call to warnings::import
4279µs213µs
# spent 11µs (9+2) within Module::Runtime::BEGIN@4.92 which was called: # once (9µs+2µs) by Module::Runtime::require_module at line 4
use utf8;
# spent 11µs making 1 call to Module::Runtime::BEGIN@4.92 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::Heuristic::DevDirMarker;
71800ns$Path::IsDev::Heuristic::DevDirMarker::VERSION = '1.001000';
8# ABSTRACT: Determine if a path contains a .devdir file
9
101300nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
11
- -
402127µs273µs
# spent 41µs (10+31) within Path::IsDev::Heuristic::DevDirMarker::BEGIN@40 which was called: # once (10µs+31µs) by Module::Runtime::require_module at line 40
use Role::Tiny::With qw( with );
# spent 41µs making 1 call to Path::IsDev::Heuristic::DevDirMarker::BEGIN@40 # spent 31µs making 1 call to Exporter::import
4112µs1350µswith 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File';
# spent 350µs making 1 call to Role::Tiny::With::with
42
- -
51
# spent 9µs within Path::IsDev::Heuristic::DevDirMarker::files which was called 9 times, avg 1µs/call: # 9 times (9µs+0s) by Path::IsDev::Heuristic::DevDirMarker::matches at line 63, avg 1µs/call
sub files {
52921µs return qw( .devdir );
53}
54
- -
61
# spent 962µs (70+892) within Path::IsDev::Heuristic::DevDirMarker::matches which was called 9 times, avg 107µs/call: # 9 times (70µs+892µs) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 107µs/call
sub matches {
6293µs my ( $self, $result_object ) = @_;
63922µs18892µs if ( $self->child_exists_any_file( $result_object, $self->files ) ) {
# spent 882µs making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 98µs/call # spent 9µs making 9 calls to Path::IsDev::Heuristic::DevDirMarker::files, avg 1µs/call
64 $result_object->result(1);
65 return 1;
66 }
67918µs return;
68}
69
7014µs1;
71
72__END__