Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/DevDirMarker.pm |
Statements | Executed 50 statements in 382µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
9 | 1 | 1 | 70µs | 962µs | matches | Path::IsDev::Heuristic::DevDirMarker::
1 | 1 | 1 | 24µs | 24µs | BEGIN@1.89 | Module::Runtime::
1 | 1 | 1 | 10µs | 41µs | BEGIN@40 | Path::IsDev::Heuristic::DevDirMarker::
1 | 1 | 1 | 10µs | 15µs | BEGIN@3.91 | Module::Runtime::
1 | 1 | 1 | 10µs | 25µs | BEGIN@2.90 | Module::Runtime::
9 | 1 | 1 | 9µs | 9µs | files | Path::IsDev::Heuristic::DevDirMarker::
1 | 1 | 1 | 9µs | 11µs | BEGIN@4.92 | Module::Runtime::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 53µs | 1 | 24µ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 # spent 24µs making 1 call to Module::Runtime::BEGIN@1.89 |
2 | 2 | 26µs | 2 | 41µ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 # spent 25µs making 1 call to Module::Runtime::BEGIN@2.90
# spent 16µs making 1 call to strict::import |
3 | 2 | 25µs | 2 | 20µ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 # spent 15µs making 1 call to Module::Runtime::BEGIN@3.91
# spent 5µs making 1 call to warnings::import |
4 | 2 | 79µs | 2 | 13µ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 # spent 11µs making 1 call to Module::Runtime::BEGIN@4.92
# spent 2µs making 1 call to utf8::import |
5 | |||||
6 | package Path::IsDev::Heuristic::DevDirMarker; | ||||
7 | 1 | 800ns | $Path::IsDev::Heuristic::DevDirMarker::VERSION = '1.001000'; | ||
8 | # ABSTRACT: Determine if a path contains a .devdir file | ||||
9 | |||||
10 | 1 | 300ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
11 | |||||
- - | |||||
40 | 2 | 127µs | 2 | 73µ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 # spent 41µs making 1 call to Path::IsDev::Heuristic::DevDirMarker::BEGIN@40
# spent 31µs making 1 call to Exporter::import |
41 | 1 | 2µs | 1 | 350µs | with '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 | ||||
52 | 9 | 21µ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 | ||||
62 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
63 | 9 | 22µs | 18 | 892µ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 | } | ||||
67 | 9 | 18µs | return; | ||
68 | } | ||||
69 | |||||
70 | 1 | 4µs | 1; | ||
71 | |||||
72 | __END__ |