Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/MetaData.pm |
Statements | Executed 201696 statements in 168ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
32214 | 3 | 2 | 157ms | 9.11s | _eval_keyword_title | JSON::Schema::Modern::Vocabulary::MetaData::
5174 | 1 | 1 | 22.2ms | 1.44s | _eval_keyword_description | JSON::Schema::Modern::Vocabulary::MetaData::
1180 | 1 | 1 | 6.51ms | 373ms | _eval_keyword_default | JSON::Schema::Modern::Vocabulary::MetaData::
131 | 2 | 2 | 698µs | 2.42ms | _traverse_keyword_title | JSON::Schema::Modern::Vocabulary::MetaData::
150 | 2 | 2 | 618µs | 2.83ms | _traverse_keyword_deprecated | JSON::Schema::Modern::Vocabulary::MetaData::
97 | 1 | 1 | 517µs | 2.29ms | _traverse_keyword_description | JSON::Schema::Modern::Vocabulary::MetaData::
135 | 1 | 1 | 509µs | 3.03ms | _traverse_keyword_readOnly | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 107µs | 112µs | BEGIN@1.318 | Module::Runtime::
98 | 1 | 1 | 82µs | 82µs | _traverse_keyword_default | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 32µs | 497µs | BEGIN@10 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 23µs | 716µs | BEGIN@11 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 15µs | 15µs | BEGIN@9 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 11µs | 25µs | BEGIN@14 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 11µs | 63µs | BEGIN@2.319 | Module::Runtime::
1 | 1 | 1 | 10µs | 31µs | BEGIN@13 | JSON::Schema::Modern::Vocabulary::MetaData::
2 | 2 | 1 | 10µs | 10µs | keywords | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 9µs | 15µs | BEGIN@16 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 8µs | 18µs | BEGIN@15 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 7µs | 98µs | BEGIN@12 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 7µs | 35µs | BEGIN@17 | JSON::Schema::Modern::Vocabulary::MetaData::
1 | 1 | 1 | 6µs | 222µs | BEGIN@18 | JSON::Schema::Modern::Vocabulary::MetaData::
5 | 1 | 1 | 1µs | 1µs | evaluation_order | 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 | 155µs | 2 | 117µs | # spent 112µs (107+5) within Module::Runtime::BEGIN@1.318 which was called:
# once (107µs+5µs) by Module::Runtime::require_module at line 1 # spent 112µs making 1 call to Module::Runtime::BEGIN@1.318
# spent 5µs making 1 call to strict::import |
2 | 2 | 94µs | 2 | 115µs | # spent 63µs (11+52) within Module::Runtime::BEGIN@2.319 which was called:
# once (11µs+52µs) by Module::Runtime::require_module at line 2 # spent 63µs making 1 call to Module::Runtime::BEGIN@2.319
# spent 52µ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 | 0s | our $VERSION = '0.556'; | ||
8 | |||||
9 | 2 | 88µs | 1 | 15µs | # spent 15µs within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 which was called:
# once (15µs+0s) by Module::Runtime::require_module at line 9 # spent 15µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 |
10 | 2 | 45µs | 2 | 962µs | # spent 497µs (32+465) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10 which was called:
# once (32µs+465µs) by Module::Runtime::require_module at line 10 # spent 497µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10
# spent 465µs making 1 call to Moo::import |
11 | 3 | 33µs | 3 | 1.41ms | # spent 716µs (23+693) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11 which was called:
# once (23µs+693µs) by Module::Runtime::require_module at line 11 # spent 716µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11
# spent 673µs making 1 call to strictures::import
# spent 20µs making 1 call to strictures::VERSION |
12 | 2 | 34µs | 2 | 189µs | # spent 98µs (7+91) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@12 which was called:
# once (7µs+91µs) by Module::Runtime::require_module at line 12 # spent 98µ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 | 34µs | # spent 31µs (10+21) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13 which was called:
# once (10µs+21µs) by Module::Runtime::require_module at line 13 # spent 31µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13
# spent 3µs making 1 call to if::import |
14 | 2 | 21µs | 2 | 27µs | # spent 25µs (11+14) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14 which was called:
# once (11µs+14µs) by Module::Runtime::require_module at line 14 # spent 25µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14
# spent 2µs making 1 call to if::unimport |
15 | 2 | 17µs | 2 | 19µs | # spent 18µs (8+10) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15 which was called:
# once (8µs+10µs) by Module::Runtime::require_module at line 15 # spent 18µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15
# spent 1µs making 1 call to if::unimport |
16 | 2 | 15µs | 2 | 15µs | # spent 15µs (9+6) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@16 which was called:
# once (9µs+6µ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 | 22µs | 2 | 63µs | # spent 35µs (7+28) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17 which was called:
# once (7µs+28µs) by Module::Runtime::require_module at line 17 # spent 35µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17
# spent 28µs making 1 call to Exporter::import |
18 | 2 | 382µs | 2 | 438µs | # spent 222µs (6+216) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18 which was called:
# once (6µs+216µs) by Module::Runtime::require_module at line 18 # spent 222µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18
# spent 216µs making 1 call to namespace::clean::import |
19 | |||||
20 | 1 | 2µs | 1 | 332µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 332µ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/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern.pm:696] at line 692 of 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 | 6µs | # spent 1µs within JSON::Schema::Modern::Vocabulary::MetaData::evaluation_order which was called 5 times, avg 200ns/call:
# 5 times (1µs+0s) by JSON::Schema::Modern::Vocabulary::Core::CORE:sort at line 331 of JSON/Schema/Modern/Vocabulary/Core.pm, avg 200ns/call | ||
28 | |||||
29 | 6 | 3µs | # spent 10µs within JSON::Schema::Modern::Vocabulary::MetaData::keywords which was called 2 times, avg 5µs/call:
# once (5µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 471 of JSON/Schema/Modern.pm
# once (5µs+0s) by JSON::Schema::Modern::_eval_subschema at line 559 of JSON/Schema/Modern.pm | ||
30 | return ( | ||||
31 | 2 | 11µs | qw(title description default), | ||
32 | $spec_version ne 'draft7' ? 'deprecated' : (), | ||||
33 | qw(readOnly writeOnly examples), | ||||
34 | ); | ||||
35 | } | ||||
36 | |||||
37 | 524 | 107µs | # spent 2.42ms (698µs+1.72) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title which was called 131 times, avg 18µs/call:
# 97 times (444µs+1.33ms) by JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description at line 46, avg 18µs/call
# 34 times (254µs+392µs) by JSON::Schema::Modern::_traverse_subschema at line 483 of JSON/Schema/Modern.pm, avg 19µs/call | ||
38 | 131 | 188µs | 131 | 1.72ms | return if not assert_keyword_type($state, $schema, 'string'); # spent 1.72ms making 131 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 13µs/call |
39 | 131 | 292µs | return 1; | ||
40 | } | ||||
41 | |||||
42 | 161070 | 27.2ms | # spent 9.11s (157ms+8.95) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title which was called 32214 times, avg 283µs/call:
# 25860 times (135ms+7.20s) by JSON::Schema::Modern::_eval_subschema at line 574 of JSON/Schema/Modern.pm, avg 284µs/call
# 5174 times (16.9ms+1.40s) by JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description at line 48, avg 273µs/call
# 1180 times (5.21ms+361ms) by JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default at line 52, avg 311µs/call | ||
43 | 32214 | 113ms | 32214 | 8.95s | annotate_self($state, $schema); # spent 8.95s making 32214 calls to JSON::Schema::Modern::Utilities::annotate_self, avg 278µs/call |
44 | } | ||||
45 | |||||
46 | 97 | 512µs | 97 | 1.77ms | # spent 2.29ms (517µs+1.77) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description which was called 97 times, avg 24µs/call:
# 97 times (517µs+1.77ms) by JSON::Schema::Modern::_traverse_subschema at line 483 of JSON/Schema/Modern.pm, avg 24µs/call # spent 1.77ms making 97 calls to JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title, avg 18µs/call |
47 | |||||
48 | 5174 | 19.0ms | 5174 | 1.41s | # spent 1.44s (22.2ms+1.41) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description which was called 5174 times, avg 277µs/call:
# 5174 times (22.2ms+1.41s) by JSON::Schema::Modern::_eval_subschema at line 574 of JSON/Schema/Modern.pm, avg 277µs/call # spent 1.41s making 5174 calls to JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title, avg 273µs/call |
49 | |||||
50 | 98 | 122µs | # spent 82µs within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_default which was called 98 times, avg 837ns/call:
# 98 times (82µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 483 of JSON/Schema/Modern.pm, avg 837ns/call | ||
51 | |||||
52 | 1180 | 6.05ms | 1180 | 367ms | # spent 373ms (6.51+367) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default which was called 1180 times, avg 316µs/call:
# 1180 times (6.51ms+367ms) by JSON::Schema::Modern::_eval_subschema at line 574 of JSON/Schema/Modern.pm, avg 316µs/call # spent 367ms making 1180 calls to JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title, avg 311µs/call |
53 | |||||
54 | 600 | 109µs | # spent 2.83ms (618µs+2.21) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated which was called 150 times, avg 19µs/call:
# 135 times (545µs+1.98ms) by JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly at line 61, avg 19µs/call
# 15 times (73µs+235µs) by JSON::Schema::Modern::_traverse_subschema at line 483 of JSON/Schema/Modern.pm, avg 21µs/call | ||
55 | 150 | 139µs | 150 | 2.21ms | return if not assert_keyword_type($state, $schema, 'boolean'); # spent 2.21ms making 150 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 15µs/call |
56 | 150 | 337µs | return 1; | ||
57 | } | ||||
58 | |||||
59 | sub _eval_keyword_deprecated { shift->_eval_keyword_title(@_) } | ||||
60 | |||||
61 | 135 | 409µs | 135 | 2.52ms | # spent 3.03ms (509µs+2.52) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly which was called 135 times, avg 22µs/call:
# 135 times (509µs+2.52ms) by JSON::Schema::Modern::_traverse_subschema at line 483 of JSON/Schema/Modern.pm, avg 22µs/call # spent 2.52ms making 135 calls to JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated, avg 19µ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 | |||||
78 | 1 | 17µs | 1 | 178µs | __END__ # spent 178µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |