Filename | /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Vocabulary/MetaData.pm |
Statements | Executed 199187 statements in 118ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
31828 | 3 | 2 | 95.5ms | 283ms | _eval_keyword_title | JSON::Schema::Modern::Vocabulary::MetaData::
5114 | 1 | 1 | 13.8ms | 39.5ms | _eval_keyword_description | JSON::Schema::Modern::Vocabulary::MetaData::
1154 | 1 | 1 | 5.29ms | 47.6ms | _eval_keyword_default | JSON::Schema::Modern::Vocabulary::MetaData::
129 | 2 | 2 | 485µs | 1.67ms | _traverse_keyword_title | JSON::Schema::Modern::Vocabulary::MetaData::
136 | 2 | 2 | 407µs | 2.21ms | _traverse_keyword_deprecated | JSON::Schema::Modern::Vocabulary::MetaData::
125 | 1 | 1 | 377µs | 2.45ms | _traverse_keyword_readOnly | JSON::Schema::Modern::Vocabulary::MetaData::
96 | 1 | 1 | 313µs | 1.58ms | _traverse_keyword_description | JSON::Schema::Modern::Vocabulary::MetaData::
98 | 1 | 1 | 68µs | 68µs | _traverse_keyword_default | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 41µs | 46µs | BEGIN@1.319 | Module::Runtime::
1 | 1 | 1 | 23µs | 925µs | BEGIN@11 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 19µs | 19µs | BEGIN@9 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 19µs | 63µs | BEGIN@2.320 | Module::Runtime::
1 | 1 | 1 | 13µs | 43µs | BEGIN@13 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 10µs | 22µs | BEGIN@14 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 9µs | 266µs | BEGIN@10 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 8µs | 99µs | BEGIN@12 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 6µs | 17µs | BEGIN@15 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 6µs | 15µs | BEGIN@16 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 6µs | 39µs | BEGIN@17 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 5µs | 166µs | BEGIN@18 | JSON::Schema::Modern::Vocabulary::MetaData::
5 | 1 | 1 | 3µs | 3µs | evaluation_order | JSON::Schema::Modern::Vocabulary::MetaData::
2 | 2 | 1 | 3µs | 3µs | keywords | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 1µs | 1µs | vocabulary | JSON::Schema::Modern::Vocabulary::MetaData::
0 | 0 | 0 | 0s | 0s | _eval_keyword_deprecated | JSON::Schema::Modern::Vocabulary::MetaData::
0 | 0 | 0 | 0s | 0s | _eval_keyword_examples | JSON::Schema::Modern::Vocabulary::MetaData::
0 | 0 | 0 | 0s | 0s | _eval_keyword_readOnly | JSON::Schema::Modern::Vocabulary::MetaData::
0 | 0 | 0 | 0s | 0s | _eval_keyword_writeOnly | JSON::Schema::Modern::Vocabulary::MetaData::
0 | 0 | 0 | 0s | 0s | _traverse_keyword_examples | JSON::Schema::Modern::Vocabulary::MetaData::
0 | 0 | 0 | 0s | 0s | _traverse_keyword_writeOnly | JSON::Schema::Modern::Vocabulary::MetaData::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 44µs | 2 | 51µs | # spent 46µs (41+5) within Module::Runtime::BEGIN@1.319 which was called:
# once (41µs+5µs) by Module::Runtime::require_module at line 1 # spent 46µs making 1 call to Module::Runtime::BEGIN@1.319
# spent 5µs making 1 call to strict::import |
2 | 2 | 54µs | 2 | 107µs | # spent 63µs (19+44) within Module::Runtime::BEGIN@2.320 which was called:
# once (19µs+44µs) by Module::Runtime::require_module at line 2 # spent 63µs making 1 call to Module::Runtime::BEGIN@2.320
# spent 44µs making 1 call to warnings::import |
3 | package JSON::Schema::Modern::Vocabulary::MetaData; | ||||
4 | # vim: set ts=8 sts=2 sw=2 tw=100 et : | ||||
5 | # ABSTRACT: Implementation of the JSON Schema Meta-Data vocabulary | ||||
6 | |||||
7 | 1 | 1µs | our $VERSION = '0.559'; | ||
8 | |||||
9 | 2 | 71µs | 1 | 19µs | # spent 19µs within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 which was called:
# once (19µs+0s) by Module::Runtime::require_module at line 9 # spent 19µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 |
10 | 2 | 43µs | 2 | 523µs | # spent 266µs (9+257) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10 which was called:
# once (9µs+257µs) by Module::Runtime::require_module at line 10 # spent 266µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10
# spent 257µs making 1 call to Moo::import |
11 | 3 | 52µs | 3 | 1.83ms | # spent 925µs (23+902) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11 which was called:
# once (23µs+902µs) by Module::Runtime::require_module at line 11 # spent 925µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11
# spent 875µs making 1 call to strictures::import
# spent 27µs making 1 call to strictures::VERSION |
12 | 2 | 40µs | 2 | 190µs | # spent 99µs (8+91) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@12 which was called:
# once (8µs+91µs) by Module::Runtime::require_module at line 12 # spent 99µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@12
# spent 91µs making 1 call to experimental::import |
13 | 2 | 23µs | 2 | 46µs | # spent 43µs (13+30) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13 which was called:
# once (13µs+30µs) by Module::Runtime::require_module at line 13 # spent 43µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13
# spent 3µs making 1 call to if::import |
14 | 2 | 19µs | 2 | 24µs | # spent 22µs (10+12) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14 which was called:
# once (10µs+12µs) by Module::Runtime::require_module at line 14 # spent 22µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14
# spent 2µs making 1 call to if::unimport |
15 | 2 | 22µs | 2 | 17µs | # spent 17µs (6+11) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15 which was called:
# once (6µs+11µs) by Module::Runtime::require_module at line 15 # spent 17µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15
# spent 0s making 1 call to if::unimport |
16 | 2 | 15µs | 2 | 15µs | # spent 15µs (6+9) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@16 which was called:
# once (6µs+9µs) by Module::Runtime::require_module at line 16 # spent 15µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@16
# spent 0s making 1 call to if::unimport |
17 | 2 | 17µs | 2 | 72µs | # spent 39µs (6+33) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17 which was called:
# once (6µs+33µs) by Module::Runtime::require_module at line 17 # spent 39µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17
# spent 33µs making 1 call to Exporter::import |
18 | 2 | 373µs | 2 | 327µs | # spent 166µs (5+161) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18 which was called:
# once (5µs+161µs) by Module::Runtime::require_module at line 18 # spent 166µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18
# spent 161µs making 1 call to namespace::clean::import |
19 | |||||
20 | 1 | 2µs | 1 | 329µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 329µs making 1 call to Moo::with |
21 | |||||
22 | # spent 1µs within JSON::Schema::Modern::Vocabulary::MetaData::vocabulary which was called:
# once (1µs+0s) by JSON::Schema::Modern::__ANON__[/Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm:709] at line 705 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm | ||||
23 | 1 | 2µs | 'https://json-schema.org/draft/2019-09/vocab/meta-data' => 'draft2019-09', | ||
24 | 'https://json-schema.org/draft/2020-12/vocab/meta-data' => 'draft2020-12'; | ||||
25 | } | ||||
26 | |||||
27 | 5 | 4µs | # spent 3µs within JSON::Schema::Modern::Vocabulary::MetaData::evaluation_order which was called 5 times, avg 600ns/call:
# 5 times (3µs+0s) by JSON::Schema::Modern::Vocabulary::Core::CORE:sort at line 337 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Vocabulary/Core.pm, avg 600ns/call | ||
28 | |||||
29 | 6 | 1µs | # spent 3µs within JSON::Schema::Modern::Vocabulary::MetaData::keywords which was called 2 times, avg 2µs/call:
# once (2µs+0s) by JSON::Schema::Modern::_eval_subschema at line 572 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm
# once (1µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 480 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm | ||
30 | return ( | ||||
31 | 2 | 6µs | qw(title description default), | ||
32 | $spec_version ne 'draft7' ? 'deprecated' : (), | ||||
33 | qw(readOnly writeOnly examples), | ||||
34 | ); | ||||
35 | } | ||||
36 | |||||
37 | 516 | 119µs | # spent 1.67ms (485µs+1.19) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title which was called 129 times, avg 13µs/call:
# 96 times (343µs+923µs) by JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description at line 46, avg 13µs/call
# 33 times (142µs+266µs) by JSON::Schema::Modern::_traverse_subschema at line 492 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 12µs/call | ||
38 | 129 | 145µs | 129 | 1.19ms | return if not assert_keyword_type($state, $schema, 'string'); # spent 1.19ms making 129 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 9µs/call |
39 | 129 | 181µs | return 1; | ||
40 | } | ||||
41 | |||||
42 | 159140 | 20.3ms | # spent 283ms (95.5+187) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title which was called 31828 times, avg 9µs/call:
# 25560 times (82.1ms+133ms) by JSON::Schema::Modern::_eval_subschema at line 587 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 8µs/call
# 5114 times (9.39ms+16.3ms) by JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description at line 48, avg 5µs/call
# 1154 times (3.92ms+38.4ms) by JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default at line 52, avg 37µs/call | ||
43 | 31828 | 77.6ms | 31828 | 187ms | annotate_self($state, $schema); # spent 187ms making 31828 calls to JSON::Schema::Modern::Utilities::annotate_self, avg 6µs/call |
44 | } | ||||
45 | |||||
46 | 96 | 341µs | 96 | 1.27ms | # spent 1.58ms (313µs+1.27) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description which was called 96 times, avg 16µs/call:
# 96 times (313µs+1.27ms) by JSON::Schema::Modern::_traverse_subschema at line 492 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 16µs/call # spent 1.27ms making 96 calls to JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title, avg 13µs/call |
47 | |||||
48 | 5114 | 12.8ms | 5114 | 25.7ms | # spent 39.5ms (13.8+25.7) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description which was called 5114 times, avg 8µs/call:
# 5114 times (13.8ms+25.7ms) by JSON::Schema::Modern::_eval_subschema at line 587 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 8µs/call # spent 25.7ms making 5114 calls to JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title, avg 5µs/call |
49 | |||||
50 | 98 | 160µs | # spent 68µs within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_default which was called 98 times, avg 694ns/call:
# 98 times (68µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 492 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 694ns/call | ||
51 | |||||
52 | 1154 | 4.40ms | 1154 | 42.3ms | # spent 47.6ms (5.29+42.3) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default which was called 1154 times, avg 41µs/call:
# 1154 times (5.29ms+42.3ms) by JSON::Schema::Modern::_eval_subschema at line 587 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 41µs/call # spent 42.3ms making 1154 calls to JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title, avg 37µs/call |
53 | |||||
54 | 544 | 96µs | # spent 2.21ms (407µs+1.81) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated which was called 136 times, avg 16µs/call:
# 125 times (372µs+1.70ms) by JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly at line 61, avg 17µs/call
# 11 times (35µs+110µs) by JSON::Schema::Modern::_traverse_subschema at line 492 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 13µs/call | ||
55 | 136 | 121µs | 136 | 1.81ms | return if not assert_keyword_type($state, $schema, 'boolean'); # spent 1.81ms making 136 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 13µs/call |
56 | 136 | 213µs | return 1; | ||
57 | } | ||||
58 | |||||
59 | sub _eval_keyword_deprecated { shift->_eval_keyword_title(@_) } | ||||
60 | |||||
61 | 125 | 366µs | 125 | 2.07ms | # spent 2.45ms (377µs+2.07) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly which was called 125 times, avg 20µs/call:
# 125 times (377µs+2.07ms) by JSON::Schema::Modern::_traverse_subschema at line 492 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm, avg 20µs/call # spent 2.07ms making 125 calls to JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated, avg 17µs/call |
62 | |||||
63 | sub _eval_keyword_readOnly { shift->_eval_keyword_title(@_) } | ||||
64 | |||||
65 | sub _traverse_keyword_writeOnly { shift->_traverse_keyword_deprecated(@_) } | ||||
66 | |||||
67 | sub _eval_keyword_writeOnly { shift->_eval_keyword_title(@_) } | ||||
68 | |||||
69 | sub _traverse_keyword_examples ($self, $schema, $state) { | ||||
70 | return if not assert_keyword_type($state, $schema, 'array'); | ||||
71 | return 1; | ||||
72 | } | ||||
73 | |||||
74 | sub _eval_keyword_examples { shift->_eval_keyword_title(@_) } | ||||
75 | |||||
76 | 1 | 5µs | 1; | ||
77 | 1 | 17µs | 1 | 169µs | __END__ # spent 169µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |