| Filename | /home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/MouseX/Getopt/Meta/Attribute/Trait.pm |
| Statements | Executed 34 statements in 439µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 16 | 1 | 1 | 50µs | 50µs | MouseX::Getopt::Meta::Attribute::Trait::__ANON__[:25] |
| 1 | 1 | 1 | 19µs | 19µs | MouseX::Getopt::Meta::Attribute::Trait::BEGIN@2 |
| 1 | 1 | 1 | 12µs | 69µs | MouseX::Getopt::Meta::Attribute::Trait::BEGIN@11 |
| 1 | 1 | 1 | 11µs | 110µs | MouseX::Getopt::Meta::Attribute::Trait::BEGIN@34 |
| 1 | 1 | 1 | 11µs | 95µs | MouseX::Getopt::Meta::Attribute::Trait::BEGIN@35 |
| 1 | 1 | 1 | 11µs | 288µs | MouseX::Getopt::Meta::Attribute::Trait::BEGIN@10 |
| 1 | 1 | 1 | 6µs | 6µs | Mouse::Meta::Attribute::Custom::Trait::Getopt::BEGIN@40 |
| 1 | 1 | 1 | 5µs | 5µs | MouseX::Getopt::Meta::Attribute::Trait::BEGIN@5 |
| 1 | 1 | 1 | 5µs | 5µs | Mouse::Meta::Attribute::Custom::Trait::Getopt::BEGIN@43 |
| 1 | 1 | 1 | 4µs | 4µs | Mouse::Meta::Attribute::Custom::Trait::Getopt::register_implementation |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package MouseX::Getopt::Meta::Attribute::Trait; | ||||
| 2 | # spent 19µs within MouseX::Getopt::Meta::Attribute::Trait::BEGIN@2 which was called:
# once (19µs+0s) by Mouse::Util::_try_load_one_class at line 4 | ||||
| 3 | 1 | 6µs | $MouseX::Getopt::Meta::Attribute::Trait::AUTHORITY = 'cpan:STEVAN'; | ||
| 4 | 1 | 23µs | 1 | 19µs | } # spent 19µs making 1 call to MouseX::Getopt::Meta::Attribute::Trait::BEGIN@2 |
| 5 | # spent 5µs within MouseX::Getopt::Meta::Attribute::Trait::BEGIN@5 which was called:
# once (5µs+0s) by Mouse::Util::_try_load_one_class at line 7 | ||||
| 6 | 1 | 5µs | $MouseX::Getopt::Meta::Attribute::Trait::VERSION = '0.33'; | ||
| 7 | 1 | 20µs | 1 | 5µs | } # spent 5µs making 1 call to MouseX::Getopt::Meta::Attribute::Trait::BEGIN@5 |
| 8 | # ABSTRACT: Optional meta attribute trait for custom option names | ||||
| 9 | |||||
| 10 | 2 | 29µs | 2 | 565µs | # spent 288µs (11+277) within MouseX::Getopt::Meta::Attribute::Trait::BEGIN@10 which was called:
# once (11µs+277µs) by Mouse::Util::_try_load_one_class at line 10 # spent 288µs making 1 call to MouseX::Getopt::Meta::Attribute::Trait::BEGIN@10
# spent 277µs making 1 call to Mouse::Exporter::do_import |
| 11 | 2 | 92µs | 2 | 127µs | # spent 69µs (12+58) within MouseX::Getopt::Meta::Attribute::Trait::BEGIN@11 which was called:
# once (12µs+58µs) by Mouse::Util::_try_load_one_class at line 11 # spent 69µs making 1 call to MouseX::Getopt::Meta::Attribute::Trait::BEGIN@11
# spent 58µs making 1 call to Mouse::Exporter::do_import |
| 12 | |||||
| 13 | 1 | 5µs | 1 | 42µs | has 'cmd_flag' => ( # spent 42µs making 1 call to Mouse::Role::has |
| 14 | is => 'rw', | ||||
| 15 | isa => 'Str', | ||||
| 16 | predicate => 'has_cmd_flag', | ||||
| 17 | ); | ||||
| 18 | |||||
| 19 | # This subtype is to support scalar -> arrayref coercion | ||||
| 20 | # without polluting the built-in types | ||||
| 21 | 1 | 8µs | 2 | 132µs | subtype '_MouseX_Getopt_CmdAliases' => as 'ArrayRef'; # spent 127µs making 1 call to Mouse::Util::TypeConstraints::subtype
# spent 4µs making 1 call to Mouse::Util::TypeConstraints::as |
| 22 | |||||
| 23 | coerce '_MouseX_Getopt_CmdAliases' | ||||
| 24 | => from 'Str' | ||||
| 25 | 17 | 94µs | 3 | 113µs | # spent 50µs within MouseX::Getopt::Meta::Attribute::Trait::__ANON__[/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/MouseX/Getopt/Meta/Attribute/Trait.pm:25] which was called 16 times, avg 3µs/call:
# 16 times (50µs+0s) by Mouse::Meta::TypeConstraint::__ANON__[/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/x86_64-linux/Mouse/Meta/TypeConstraint.pm:119] at line 115 of Mouse/Meta/TypeConstraint.pm, avg 3µs/call # spent 107µs making 1 call to Mouse::Util::TypeConstraints::coerce
# spent 3µs making 1 call to Mouse::Util::TypeConstraints::from
# spent 3µs making 1 call to Mouse::Util::TypeConstraints::via |
| 26 | |||||
| 27 | 1 | 4µs | 1 | 33µs | has 'cmd_aliases' => ( # spent 33µs making 1 call to Mouse::Role::has |
| 28 | is => 'rw', | ||||
| 29 | isa => '_MouseX_Getopt_CmdAliases', | ||||
| 30 | predicate => 'has_cmd_aliases', | ||||
| 31 | coerce => 1, | ||||
| 32 | ); | ||||
| 33 | |||||
| 34 | 2 | 26µs | 2 | 209µs | # spent 110µs (11+99) within MouseX::Getopt::Meta::Attribute::Trait::BEGIN@34 which was called:
# once (11µs+99µs) by Mouse::Util::_try_load_one_class at line 34 # spent 110µs making 1 call to MouseX::Getopt::Meta::Attribute::Trait::BEGIN@34
# spent 99µs making 1 call to Mouse::Exporter::do_unimport |
| 35 | 2 | 49µs | 2 | 180µs | # spent 95µs (11+85) within MouseX::Getopt::Meta::Attribute::Trait::BEGIN@35 which was called:
# once (11µs+85µs) by Mouse::Util::_try_load_one_class at line 35 # spent 95µs making 1 call to MouseX::Getopt::Meta::Attribute::Trait::BEGIN@35
# spent 85µs making 1 call to Mouse::Exporter::do_unimport |
| 36 | |||||
| 37 | # register this as a metaclass alias ... | ||||
| 38 | package # stop confusing PAUSE | ||||
| 39 | Mouse::Meta::Attribute::Custom::Trait::Getopt; | ||||
| 40 | # spent 6µs within Mouse::Meta::Attribute::Custom::Trait::Getopt::BEGIN@40 which was called:
# once (6µs+0s) by Mouse::Util::_try_load_one_class at line 42 | ||||
| 41 | 1 | 6µs | $Mouse::Meta::Attribute::Custom::Trait::Getopt::AUTHORITY = 'cpan:STEVAN'; | ||
| 42 | 1 | 23µs | 1 | 6µs | } # spent 6µs making 1 call to Mouse::Meta::Attribute::Custom::Trait::Getopt::BEGIN@40 |
| 43 | # spent 5µs within Mouse::Meta::Attribute::Custom::Trait::Getopt::BEGIN@43 which was called:
# once (5µs+0s) by Mouse::Util::_try_load_one_class at line 45 | ||||
| 44 | 1 | 6µs | $Mouse::Meta::Attribute::Custom::Trait::Getopt::VERSION = '0.33'; | ||
| 45 | 1 | 26µs | 1 | 5µs | } # spent 5µs making 1 call to Mouse::Meta::Attribute::Custom::Trait::Getopt::BEGIN@43 |
| 46 | 1 | 9µs | # spent 4µs within Mouse::Meta::Attribute::Custom::Trait::Getopt::register_implementation which was called:
# once (4µs+0s) by Mouse::Util::resolve_metaclass_alias at line 202 of Mouse/Util.pm | ||
| 47 | |||||
| 48 | 1 | 9µs | 1; | ||
| 49 | |||||
| 50 | |||||
| 51 | __END__ |