← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:11 2016

Filename/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm
StatementsExecuted 655 statements in 3.77ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
7511414µs1.89msMoose::Util::TypeConstraints::Builtins::::__ANON__[:60]Moose::Util::TypeConstraints::Builtins::__ANON__[:60]
6011400µs3.09msMoose::Util::TypeConstraints::Builtins::::__ANON__[:77]Moose::Util::TypeConstraints::Builtins::__ANON__[:77]
111396µs6.24msMoose::Util::TypeConstraints::Builtins::::define_builtinsMoose::Util::TypeConstraints::Builtins::define_builtins
2011135µs1.10msMoose::Util::TypeConstraints::Builtins::::__ANON__[:231]Moose::Util::TypeConstraints::Builtins::__ANON__[:231]
5811124µs124µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:52]Moose::Util::TypeConstraints::Builtins::__ANON__[:52]
1811123µs822µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:266]Moose::Util::TypeConstraints::Builtins::__ANON__[:266]
7611104µs104µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:40]Moose::Util::TypeConstraints::Builtins::__ANON__[:40]
531181µs81µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:252]Moose::Util::TypeConstraints::Builtins::__ANON__[:252]
111141µs468µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:114]Moose::Util::TypeConstraints::Builtins::__ANON__[:114]
221133µs33µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:217]Moose::Util::TypeConstraints::Builtins::__ANON__[:217]
41131µs39µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:216]Moose::Util::TypeConstraints::Builtins::__ANON__[:216]
1616117µs17µsMoose::Util::TypeConstraints::Builtins::::whereMoose::Util::TypeConstraints::Builtins::where
21116µs20µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:251]Moose::Util::TypeConstraints::Builtins::__ANON__[:251]
1616115µs15µsMoose::Util::TypeConstraints::Builtins::::asMoose::Util::TypeConstraints::Builtins::as
11115µs30µsMoose::Util::TypeConstraints::Builtins::::BEGIN@4Moose::Util::TypeConstraints::Builtins::BEGIN@4
31114µs144µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:106]Moose::Util::TypeConstraints::Builtins::__ANON__[:106]
1616112µs12µsMoose::Util::TypeConstraints::Builtins::::subtypeMoose::Util::TypeConstraints::Builtins::subtype
21112µs119µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:292]Moose::Util::TypeConstraints::Builtins::__ANON__[:292]
1717112µs12µsMoose::Util::TypeConstraints::Builtins::::inline_asMoose::Util::TypeConstraints::Builtins::inline_as
11110µs23µsMoose::Util::TypeConstraints::Builtins::::BEGIN@8Moose::Util::TypeConstraints::Builtins::BEGIN@8
11110µs17µsMoose::Util::TypeConstraints::Builtins::::BEGIN@5Moose::Util::TypeConstraints::Builtins::BEGIN@5
1119µs27µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:170]Moose::Util::TypeConstraints::Builtins::__ANON__[:170]
1118µs9µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:284]Moose::Util::TypeConstraints::Builtins::__ANON__[:284]
1117µs43µsMoose::Util::TypeConstraints::Builtins::::BEGIN@7Moose::Util::TypeConstraints::Builtins::BEGIN@7
1116µs29µsMoose::Util::TypeConstraints::Builtins::::BEGIN@9Moose::Util::TypeConstraints::Builtins::BEGIN@9
1113µs3µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:189]Moose::Util::TypeConstraints::Builtins::__ANON__[:189]
1113µs3µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:146]Moose::Util::TypeConstraints::Builtins::__ANON__[:146]
2112µs2µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:157]Moose::Util::TypeConstraints::Builtins::__ANON__[:157]
1112µs2µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:126]Moose::Util::TypeConstraints::Builtins::__ANON__[:126]
2112µs2µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:22]Moose::Util::TypeConstraints::Builtins::__ANON__[:22]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:119]Moose::Util::TypeConstraints::Builtins::__ANON__[:119]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:33]Moose::Util::TypeConstraints::Builtins::__ANON__[:33]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:151]Moose::Util::TypeConstraints::Builtins::__ANON__[:151]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:285]Moose::Util::TypeConstraints::Builtins::__ANON__[:285]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:66]Moose::Util::TypeConstraints::Builtins::__ANON__[:66]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::__ANON__[:131]Moose::Util::TypeConstraints::Builtins::__ANON__[:131]
1111µs1µsMoose::Util::TypeConstraints::Builtins::::typeMoose::Util::TypeConstraints::Builtins::type
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:110]Moose::Util::TypeConstraints::Builtins::__ANON__[:110]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:118]Moose::Util::TypeConstraints::Builtins::__ANON__[:118]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:130]Moose::Util::TypeConstraints::Builtins::__ANON__[:130]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:140]Moose::Util::TypeConstraints::Builtins::__ANON__[:140]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:150]Moose::Util::TypeConstraints::Builtins::__ANON__[:150]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:155]Moose::Util::TypeConstraints::Builtins::__ANON__[:155]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:163]Moose::Util::TypeConstraints::Builtins::__ANON__[:163]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:178]Moose::Util::TypeConstraints::Builtins::__ANON__[:178]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:184]Moose::Util::TypeConstraints::Builtins::__ANON__[:184]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:185]Moose::Util::TypeConstraints::Builtins::__ANON__[:185]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:196]Moose::Util::TypeConstraints::Builtins::__ANON__[:196]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:206]Moose::Util::TypeConstraints::Builtins::__ANON__[:206]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:215]Moose::Util::TypeConstraints::Builtins::__ANON__[:215]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:21]Moose::Util::TypeConstraints::Builtins::__ANON__[:21]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:241]Moose::Util::TypeConstraints::Builtins::__ANON__[:241]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:250]Moose::Util::TypeConstraints::Builtins::__ANON__[:250]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:26]Moose::Util::TypeConstraints::Builtins::__ANON__[:26]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:276]Moose::Util::TypeConstraints::Builtins::__ANON__[:276]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:283]Moose::Util::TypeConstraints::Builtins::__ANON__[:283]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:30]Moose::Util::TypeConstraints::Builtins::__ANON__[:30]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:37]Moose::Util::TypeConstraints::Builtins::__ANON__[:37]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:44]Moose::Util::TypeConstraints::Builtins::__ANON__[:44]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:56]Moose::Util::TypeConstraints::Builtins::__ANON__[:56]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:64]Moose::Util::TypeConstraints::Builtins::__ANON__[:64]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:70]Moose::Util::TypeConstraints::Builtins::__ANON__[:70]
0000s0sMoose::Util::TypeConstraints::Builtins::::__ANON__[:91]Moose::Util::TypeConstraints::Builtins::__ANON__[:91]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Moose::Util::TypeConstraints::Builtins;
21700nsour $VERSION = '2.1604';
3
4228µs246µs
# spent 30µs (15+15) within Moose::Util::TypeConstraints::Builtins::BEGIN@4 which was called: # once (15µs+15µs) by Moose::Meta::Attribute::BEGIN@16 at line 4
use strict;
# spent 30µs making 1 call to Moose::Util::TypeConstraints::Builtins::BEGIN@4 # spent 16µs making 1 call to strict::import
5235µs225µs
# spent 17µs (10+7) within Moose::Util::TypeConstraints::Builtins::BEGIN@5 which was called: # once (10µs+7µs) by Moose::Meta::Attribute::BEGIN@16 at line 5
use warnings;
# spent 17µs making 1 call to Moose::Util::TypeConstraints::Builtins::BEGIN@5 # spent 7µs making 1 call to warnings::import
6
7227µs279µs
# spent 43µs (7+36) within Moose::Util::TypeConstraints::Builtins::BEGIN@7 which was called: # once (7µs+36µs) by Moose::Meta::Attribute::BEGIN@16 at line 7
use Class::Load qw( is_class_loaded );
# spent 43µs making 1 call to Moose::Util::TypeConstraints::Builtins::BEGIN@7 # spent 36µs making 1 call to Exporter::import
8341µs236µs
# spent 23µs (10+13) within Moose::Util::TypeConstraints::Builtins::BEGIN@8 which was called: # once (10µs+13µs) by Moose::Meta::Attribute::BEGIN@16 at line 8
use List::Util 1.33 ();
# spent 23µs making 1 call to Moose::Util::TypeConstraints::Builtins::BEGIN@8 # spent 13µs making 1 call to UNIVERSAL::VERSION
921.69ms252µs
# spent 29µs (6+23) within Moose::Util::TypeConstraints::Builtins::BEGIN@9 which was called: # once (6µs+23µs) by Moose::Meta::Attribute::BEGIN@16 at line 9
use Scalar::Util qw( blessed );
# spent 29µs making 1 call to Moose::Util::TypeConstraints::Builtins::BEGIN@9 # spent 23µs making 1 call to Exporter::import
10
1114µs1396µs
# spent 1µs within Moose::Util::TypeConstraints::Builtins::type which was called: # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 22
sub type { goto &Moose::Util::TypeConstraints::type }
# spent 396µs making 1 call to Moose::Util::TypeConstraints::type
121640µs164.38ms
# spent 12µs within Moose::Util::TypeConstraints::Builtins::subtype which was called 16 times, avg 769ns/call: # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 26 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 33 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 157 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 40 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 114 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 66 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 77 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 146 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 60 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 119 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 170 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 52 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 131 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 106 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 151 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 126
sub subtype { goto &Moose::Util::TypeConstraints::subtype }
# spent 4.38ms making 16 calls to Moose::Util::TypeConstraints::subtype, avg 274µs/call
131645µs1623µs
# spent 15µs within Moose::Util::TypeConstraints::Builtins::as which was called 16 times, avg 950ns/call: # once (5µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 26 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 131 # once (800ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 151 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 40 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 170 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 157 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 33 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 52 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 77 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 66 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 114 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 126 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 106 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 60 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 119 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 146
sub as { goto &Moose::Util::TypeConstraints::as }
# spent 23µs making 16 calls to Moose::Util::TypeConstraints::as, avg 1µs/call
141666µs1617µs
# spent 17µs within Moose::Util::TypeConstraints::Builtins::where which was called 16 times, avg 1µs/call: # once (2µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 22 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 33 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 114 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 60 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 77 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 66 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 151 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 146 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 106 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 126 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 52 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 157 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 40 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 170 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 119 # once (900ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 131
sub where (&) { goto &Moose::Util::TypeConstraints::where }
# spent 17µs making 16 calls to Moose::Util::TypeConstraints::where, avg 1µs/call
151746µs1715µs
# spent 12µs within Moose::Util::TypeConstraints::Builtins::inline_as which was called 17 times, avg 688ns/call: # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 22 # once (1µs+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 26 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 170 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 40 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 157 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 33 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 52 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 66 # once (700ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 146 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 77 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 126 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 106 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 131 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 151 # once (600ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 119 # once (500ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 114 # once (500ns+0s) by Moose::Util::TypeConstraints::Builtins::define_builtins at line 60
sub inline_as (&) { goto &Moose::Util::TypeConstraints::inline_as }
# spent 15µs making 17 calls to Moose::Util::TypeConstraints::inline_as, avg 865ns/call
16
17
# spent 6.24ms (396µs+5.84) within Moose::Util::TypeConstraints::Builtins::define_builtins which was called: # once (396µs+5.84ms) by Moose::Meta::Attribute::BEGIN@16 at line 732 of Moose/Util/TypeConstraints.pm
sub define_builtins {
181400ns my $registry = shift;
19
20 type 'Any' # meta-type including all
21 => where {1}
22314µs35µs
# spent 2µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:22] which was called 2 times, avg 800ns/call: # 2 times (2µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 800ns/call
=> inline_as { '1' };
# spent 2µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as # spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::type
23
24 subtype 'Item' # base type
25 => as 'Any'
2615µs37µs => inline_as { '1' };
# spent 5µs making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as # spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::subtype
27
28 subtype 'Undef'
29 => as 'Item'
30 => where { !defined($_) }
31
# spent 1µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:33] which was called: # once (1µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as {
3213µs '!defined(' . $_[1] . ')'
3317µs43µs };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
34
35 subtype 'Defined'
36 => as 'Item'
37 => where { defined($_) }
38
# spent 104µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:40] which was called 76 times, avg 1µs/call: # 76 times (104µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 1µs/call
=> inline_as {
3976176µs 'defined(' . $_[1] . ')'
4016µs43µs };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
41
42 subtype 'Bool'
43 => as 'Item'
44 => where { !defined($_) || $_ eq "" || "$_" eq '1' || "$_" eq '0' }
45
# spent 124µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:52] which was called 58 times, avg 2µs/call: # 58 times (124µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 2µs/call
=> inline_as {
4658174µs '('
47 . '!defined(' . $_[1] . ') '
48 . '|| ' . $_[1] . ' eq "" '
49 . '|| (' . $_[1] . '."") eq "1" '
50 . '|| (' . $_[1] . '."") eq "0"'
51 . ')'
5217µs43µs };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype
53
54 subtype 'Value'
55 => as 'Defined'
56 => where { !ref($_) }
57
# spent 1.89ms (414µs+1.48) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:60] which was called 75 times, avg 25µs/call: # 75 times (414µs+1.48ms) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 25µs/call
=> inline_as {
5875279µs15053µs $_[0]->parent()->_inline_check($_[1])
# spent 53µs making 75 calls to Moose::Meta::TypeConstraint::parent, avg 707ns/call # spent 1.43ms making 75 calls to Moose::Meta::TypeConstraint::_inline_check, avg 19µs/call, recursion: max depth 2, sum of overlapping time 1.43ms
59 . ' && !ref(' . $_[1] . ')'
6017µs43µs };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 500ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
61
62 subtype 'Ref'
63 => as 'Defined'
64 => where { ref($_) }
65 # no need to call parent - ref also checks for definedness
66211µs43µs
# spent 1µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:66] which was called: # once (1µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as { 'ref(' . $_[1] . ')' };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
67
68 subtype 'Str'
69 => as 'Value'
70 => where { ref(\$_) eq 'SCALAR' || ref(\(my $val = $_)) eq 'SCALAR' }
71
# spent 3.09ms (400µs+2.69) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:77] which was called 60 times, avg 52µs/call: # 60 times (400µs+2.69ms) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 52µs/call
=> inline_as {
7260301µs12078µs $_[0]->parent()->_inline_check($_[1])
# spent 78µs making 60 calls to Moose::Meta::TypeConstraint::parent, avg 1µs/call # spent 2.61ms making 60 calls to Moose::Meta::TypeConstraint::_inline_check, avg 44µs/call, recursion: max depth 1, sum of overlapping time 2.61ms
73 . ' && ('
74 . 'ref(\\' . $_[1] . ') eq "SCALAR"'
75 . ' || ref(\\(my $val = ' . $_[1] . ')) eq "SCALAR"'
76 . ')'
7718µs43µs };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
78
7911µs112µs my $value_type = Moose::Util::TypeConstraints::find_type_constraint('Value');
# spent 12µs making 1 call to Moose::Util::TypeConstraints::find_type_constraint
80 subtype 'Num'
81 => as 'Str'
82 => where {
83 my $val = $_;
84 ($val =~ /\A[+-]?[0-9]+\z/) ||
85 ( $val =~ /\A(?:[+-]?) # matches optional +- in the beginning
86 (?=[0-9]|\.[0-9]) # matches previous +- only if there is something like 3 or .3
87 [0-9]* # matches 0-9 zero or more times
88 (?:\.[0-9]+)? # matches optional .89 or nothing
89 (?:[Ee](?:[+-]?[0-9]+))? # matches E1 or e1 or e-1 or e+1 etc
90 \z/x );
91 }
92
# spent 144µs (14+130) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:106] which was called 3 times, avg 48µs/call: # 3 times (14µs+130µs) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 48µs/call
=> inline_as {
93 # the long Str tests are redundant here
94 #storing $_[1] in a temporary value,
95 #so that $_[1] won't get converted to a string for regex match
96 #see t/attributes/numeric_defaults.t for more details
97313µs30s 'my $val = '.$_[1].';'.
# spent 130µs making 3 calls to Moose::Meta::TypeConstraint::_inline_check, avg 43µs/call, recursion: max depth 1, sum of overlapping time 130µs
98 $value_type->_inline_check('$val')
99 .' && ( $val =~ /\A[+-]?[0-9]+\z/ || '
100 . '$val =~ /\A(?:[+-]?) # matches optional +- in the beginning
101 (?=[0-9]|\.[0-9]) # matches previous +- only if there is something like 3 or .3
102 [0-9]* # matches 0-9 zero or more times
103 (?:\.[0-9]+)? # matches optional .89 or nothing
104 (?:[Ee](?:[+-]?[0-9]+))? # matches E1 or e1 or e-1 or e+1 etc
105 \z/x ); '
10616µs43µs };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
107
108 subtype 'Int'
109 => as 'Num'
110 => where { (my $val = $_) =~ /\A-?[0-9]+\z/ }
111
# spent 468µs (41+427) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:114] which was called 11 times, avg 43µs/call: # 11 times (41µs+427µs) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 43µs/call
=> inline_as {
1121137µs110s $value_type->_inline_check($_[1])
# spent 427µs making 11 calls to Moose::Meta::TypeConstraint::_inline_check, avg 39µs/call, recursion: max depth 1, sum of overlapping time 427µs
113 . ' && (my $val = ' . $_[1] . ') =~ /\A-?[0-9]+\z/'
11417µs43µs };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 500ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
115
116 subtype 'CodeRef'
117 => as 'Ref'
118 => where { ref($_) eq 'CODE' }
119210µs43µs
# spent 1µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:119] which was called: # once (1µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as { 'ref(' . $_[1] . ') eq "CODE"' };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
120
121 subtype 'RegexpRef'
122 => as 'Ref'
123 => where( \&_RegexpRef )
124
# spent 2µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:126] which was called: # once (2µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as {
12513µs 'Moose::Util::TypeConstraints::Builtins::_RegexpRef(' . $_[1] . ')'
12617µs43µs };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype
127
128 subtype 'GlobRef'
129 => as 'Ref'
130 => where { ref($_) eq 'GLOB' }
131210µs43µs
# spent 1µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:131] which was called: # once (1µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as { 'ref(' . $_[1] . ') eq "GLOB"' };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
132
133 # NOTE: scalar filehandles are GLOB refs, but a GLOB ref is not always a
134 # filehandle
135 subtype 'FileHandle'
136 => as 'Ref'
137 => where {
138 (ref($_) eq "GLOB" && Scalar::Util::openhandle($_))
139 || (blessed($_) && $_->isa("IO::Handle"));
140 }
141
# spent 3µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:146] which was called: # once (3µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as {
14215µs '(ref(' . $_[1] . ') eq "GLOB" '
143 . '&& Scalar::Util::openhandle(' . $_[1] . ')) '
144 . '|| (Scalar::Util::blessed(' . $_[1] . ') '
145 . '&& ' . $_[1] . '->isa("IO::Handle"))'
14618µs43µs };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::as
147
148 subtype 'Object'
149 => as 'Ref'
150 => where { blessed($_) }
151212µs43µs
# spent 1µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:151] which was called: # once (1µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as { 'Scalar::Util::blessed(' . $_[1] . ')' };
# spent 1µs making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 600ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
152
153 subtype 'ClassName'
154 => as 'Str'
155 => where { is_class_loaded($_) }
156 # the long Str tests are redundant here
157312µs43µs
# spent 2µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:157] which was called 2 times, avg 1µs/call: # 2 times (2µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 1µs/call
=> inline_as { 'Class::Load::is_class_loaded(' . $_[1] . ')' };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 800ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as
158
159 subtype 'RoleName'
160 => as 'ClassName'
161 => where {
162 (Class::MOP::class_of($_) || return)->isa('Moose::Meta::Role');
163 }
164
# spent 27µs (9+19) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:170] which was called: # once (9µs+19µs) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
=> inline_as {
16516µs2700ns $_[0]->parent()->_inline_check($_[1])
# spent 700ns making 1 call to Moose::Meta::TypeConstraint::parent # spent 18µs making 1 call to Moose::Meta::TypeConstraint::_inline_check, recursion: max depth 1, sum of overlapping time 18µs
166 . ' && do {'
167 . 'my $meta = Class::MOP::class_of(' . $_[1] . ');'
168 . '$meta && $meta->isa("Moose::Meta::Role");'
169 . '}'
17018µs43µs };
# spent 900ns making 1 call to Moose::Util::TypeConstraints::Builtins::where # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::inline_as # spent 700ns making 1 call to Moose::Util::TypeConstraints::Builtins::subtype
171
172 $registry->add_type_constraint(
173 Moose::Meta::TypeConstraint::Parameterizable->new(
174 name => 'ScalarRef',
175 package_defined_in => __PACKAGE__,
176 parent =>
177 Moose::Util::TypeConstraints::find_type_constraint('Ref'),
178 constraint => sub { ref($_) eq 'SCALAR' || ref($_) eq 'REF' },
179 constraint_generator => sub {
180 my $type_parameter = shift;
181 my $check = $type_parameter->_compiled_type_constraint;
182 return sub {
183 return $check->( ${$_} );
184 };
185 },
186
# spent 3µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:189] which was called: # once (3µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
inlined => sub {
18714µs 'ref(' . $_[1] . ') eq "SCALAR" '
188 . '|| ref(' . $_[1] . ') eq "REF"'
189 },
190 inline_generator => sub {
191 my $self = shift;
192 my $type_parameter = shift;
193 my $val = shift;
194 '(ref(' . $val . ') eq "SCALAR" || ref(' . $val . ') eq "REF") '
195 . '&& ' . $type_parameter->_inline_check('${(' . $val . ')}')
196 },
197 )
198112µs3337µs );
# spent 309µs making 1 call to Moose::Meta::TypeConstraint::new # spent 16µs making 1 call to Moose::Meta::TypeConstraint::Registry::add_type_constraint # spent 12µs making 1 call to Moose::Util::TypeConstraints::find_type_constraint
199
200 $registry->add_type_constraint(
201 Moose::Meta::TypeConstraint::Parameterizable->new(
202 name => 'ArrayRef',
203 package_defined_in => __PACKAGE__,
204 parent =>
205 Moose::Util::TypeConstraints::find_type_constraint('Ref'),
206 constraint => sub { ref($_) eq 'ARRAY' },
207
# spent 39µs (31+8) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:216] which was called 4 times, avg 10µs/call: # 4 times (31µs+8µs) by Moose::Meta::TypeConstraint::Parameterizable::generate_constraint_for at line 33 of Moose/Meta/TypeConstraint/Parameterizable.pm, avg 10µs/call
constraint_generator => sub {
20841µs my $type_parameter = shift;
20946µs48µs my $check = $type_parameter->_compiled_type_constraint;
# spent 8µs making 4 calls to Moose::Meta::TypeConstraint::_compiled_type_constraint, avg 2µs/call
210 return sub {
211 foreach my $x (@$_) {
212 ( $check->($x) ) || return;
213 }
214 1;
215 }
216424µs },
2172253µs
# spent 33µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:217] which was called 22 times, avg 2µs/call: # 22 times (33µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 2µs/call
inlined => sub { 'ref(' . $_[1] . ') eq "ARRAY"' },
218
# spent 1.10ms (135µs+962µs) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:231] which was called 20 times, avg 55µs/call: # 20 times (135µs+962µs) by Moose::Meta::TypeConstraint::Parameterizable::generate_inline_for at line 62 of Moose/Meta/TypeConstraint/Parameterizable.pm, avg 55µs/call
inline_generator => sub {
219208µs my $self = shift;
220205µs my $type_parameter = shift;
221206µs my $val = shift;
222
22320183µs20962µs 'do {'
# spent 619µs making 15 calls to Moose::Meta::TypeConstraint::_inline_check, avg 41µs/call # spent 344µs making 5 calls to Moose::Meta::TypeConstraint::Union::_inline_check, avg 69µs/call
224 . 'my $check = ' . $val . ';'
225 . 'ref($check) eq "ARRAY" '
226 . '&& &List::Util::all('
227 . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, '
228 . '@{$check}'
229 . ')'
230 . '}';
231 },
232 )
23318µs3225µs );
# spent 200µs making 1 call to Moose::Meta::TypeConstraint::new # spent 12µs making 1 call to Moose::Meta::TypeConstraint::Registry::add_type_constraint # spent 12µs making 1 call to Moose::Util::TypeConstraints::find_type_constraint
234
235 $registry->add_type_constraint(
236 Moose::Meta::TypeConstraint::Parameterizable->new(
237 name => 'HashRef',
238 package_defined_in => __PACKAGE__,
239 parent =>
240 Moose::Util::TypeConstraints::find_type_constraint('Ref'),
241 constraint => sub { ref($_) eq 'HASH' },
242
# spent 20µs (16+4) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:251] which was called 2 times, avg 10µs/call: # 2 times (16µs+4µs) by Moose::Meta::TypeConstraint::Parameterizable::generate_constraint_for at line 33 of Moose/Meta/TypeConstraint/Parameterizable.pm, avg 10µs/call
constraint_generator => sub {
2432600ns my $type_parameter = shift;
24424µs24µs my $check = $type_parameter->_compiled_type_constraint;
# spent 4µs making 2 calls to Moose::Meta::TypeConstraint::_compiled_type_constraint, avg 2µs/call
245 return sub {
246 foreach my $x ( values %$_ ) {
247 ( $check->($x) ) || return;
248 }
249 1;
250 }
251210µs },
25253122µs
# spent 81µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:252] which was called 53 times, avg 2µs/call: # 53 times (81µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm, avg 2µs/call
inlined => sub { 'ref(' . $_[1] . ') eq "HASH"' },
253
# spent 822µs (123+699) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:266] which was called 18 times, avg 46µs/call: # 18 times (123µs+699µs) by Moose::Meta::TypeConstraint::Parameterizable::generate_inline_for at line 62 of Moose/Meta/TypeConstraint/Parameterizable.pm, avg 46µs/call
inline_generator => sub {
254185µs my $self = shift;
255184µs my $type_parameter = shift;
256186µs my $val = shift;
257
2581894µs18699µs 'do {'
# spent 699µs making 18 calls to Moose::Meta::TypeConstraint::_inline_check, avg 39µs/call
259 . 'my $check = ' . $val . ';'
260 . 'ref($check) eq "HASH" '
261 . '&& &List::Util::all('
262 . 'sub { ' . $type_parameter->_inline_check('$_') . ' }, '
263 . 'values %{$check}'
264 . ')'
265 . '}';
266 },
267 )
26817µs3193µs );
# spent 168µs making 1 call to Moose::Meta::TypeConstraint::new # spent 13µs making 1 call to Moose::Meta::TypeConstraint::Registry::add_type_constraint # spent 12µs making 1 call to Moose::Util::TypeConstraints::find_type_constraint
269
270 $registry->add_type_constraint(
271 Moose::Meta::TypeConstraint::Parameterizable->new(
272 name => 'Maybe',
273 package_defined_in => __PACKAGE__,
274 parent =>
275 Moose::Util::TypeConstraints::find_type_constraint('Item'),
276 constraint => sub {1},
277
# spent 9µs (8+800ns) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:284] which was called: # once (8µs+800ns) by Moose::Meta::TypeConstraint::Parameterizable::generate_constraint_for at line 33 of Moose/Meta/TypeConstraint/Parameterizable.pm
constraint_generator => sub {
2781400ns my $type_parameter = shift;
27911µs1800ns my $check = $type_parameter->_compiled_type_constraint;
280 return sub {
281 return 1 if not( defined($_) ) || $check->($_);
282 return;
283 }
28416µs },
28513µs
# spent 1µs within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:285] which was called: # once (1µs+0s) by Moose::Meta::TypeConstraint::_inline_check at line 195 of Moose/Meta/TypeConstraint.pm
inlined => sub {'1'},
286
# spent 119µs (12+107) within Moose::Util::TypeConstraints::Builtins::__ANON__[/usr/local/lib/perl/5.18.2/Moose/Util/TypeConstraints/Builtins.pm:292] which was called 2 times, avg 60µs/call: # 2 times (12µs+107µs) by Moose::Meta::TypeConstraint::Parameterizable::generate_inline_for at line 62 of Moose/Meta/TypeConstraint/Parameterizable.pm, avg 60µs/call
inline_generator => sub {
2872600ns my $self = shift;
2882200ns my $type_parameter = shift;
2892600ns my $val = shift;
290210µs2107µs '!defined(' . $val . ') '
# spent 107µs making 2 calls to Moose::Meta::TypeConstraint::Union::_inline_check, avg 54µs/call
291 . '|| (' . $type_parameter->_inline_check($val) . ')'
292 },
293 )
294111µs3189µs );
# spent 165µs making 1 call to Moose::Meta::TypeConstraint::new # spent 13µs making 1 call to Moose::Meta::TypeConstraint::Registry::add_type_constraint # spent 12µs making 1 call to Moose::Util::TypeConstraints::find_type_constraint
295}
296
29713µs1;
298
299__END__