| Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/MetaData.pm |
| Statements | Executed 201696 statements in 158ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 32214 | 3 | 2 | 133ms | 2.52s | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title |
| 5174 | 1 | 1 | 20.0ms | 343ms | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description |
| 1180 | 1 | 1 | 6.57ms | 171ms | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default |
| 131 | 2 | 2 | 537µs | 1.86ms | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title |
| 150 | 2 | 2 | 503µs | 2.54ms | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated |
| 135 | 1 | 1 | 487µs | 2.86ms | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly |
| 97 | 1 | 1 | 394µs | 1.75ms | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description |
| 98 | 1 | 1 | 121µs | 121µs | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_default |
| 1 | 1 | 1 | 42µs | 50µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15 |
| 1 | 1 | 1 | 40µs | 46µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@16 |
| 1 | 1 | 1 | 36µs | 39µs | Module::Runtime::BEGIN@1.319 |
| 1 | 1 | 1 | 17µs | 825µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11 |
| 1 | 1 | 1 | 14µs | 14µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 |
| 1 | 1 | 1 | 11µs | 103µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13 |
| 2 | 2 | 1 | 9µs | 9µs | JSON::Schema::Modern::Vocabulary::MetaData::keywords |
| 1 | 1 | 1 | 8µs | 517µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10 |
| 1 | 1 | 1 | 8µs | 132µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@12 |
| 1 | 1 | 1 | 8µs | 42µs | Module::Runtime::BEGIN@2.320 |
| 1 | 1 | 1 | 7µs | 26µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14 |
| 1 | 1 | 1 | 7µs | 68µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17 |
| 1 | 1 | 1 | 7µs | 228µs | JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18 |
| 5 | 1 | 1 | 2µs | 2µs | JSON::Schema::Modern::Vocabulary::MetaData::evaluation_order |
| 0 | 0 | 0 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_deprecated |
| 0 | 0 | 0 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_examples |
| 0 | 0 | 0 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_readOnly |
| 0 | 0 | 0 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_writeOnly |
| 0 | 0 | 0 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_examples |
| 0 | 0 | 0 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_writeOnly |
| 1 | 1 | 1 | 0s | 0s | JSON::Schema::Modern::Vocabulary::MetaData::vocabulary |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 40µs | 2 | 42µs | # spent 39µs (36+3) within Module::Runtime::BEGIN@1.319 which was called:
# once (36µs+3µs) by Module::Runtime::require_module at line 1 # spent 39µs making 1 call to Module::Runtime::BEGIN@1.319
# spent 3µs making 1 call to strict::import |
| 2 | 2 | 92µs | 2 | 76µs | # spent 42µs (8+34) within Module::Runtime::BEGIN@2.320 which was called:
# once (8µs+34µs) by Module::Runtime::require_module at line 2 # spent 42µs making 1 call to Module::Runtime::BEGIN@2.320
# spent 34µ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.558'; | ||
| 8 | |||||
| 9 | 2 | 45µs | 1 | 14µs | # spent 14µs within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 which was called:
# once (14µs+0s) by Module::Runtime::require_module at line 9 # spent 14µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@9 |
| 10 | 2 | 36µs | 2 | 1.03ms | # spent 517µs (8+509) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10 which was called:
# once (8µs+509µs) by Module::Runtime::require_module at line 10 # spent 517µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@10
# spent 509µs making 1 call to Moo::import |
| 11 | 3 | 56µs | 3 | 1.63ms | # spent 825µs (17+808) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11 which was called:
# once (17µs+808µs) by Module::Runtime::require_module at line 11 # spent 825µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@11
# spent 789µs making 1 call to strictures::import
# spent 18µs making 1 call to strictures::VERSION |
| 12 | 2 | 35µs | 2 | 256µs | # spent 132µs (8+124) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@12 which was called:
# once (8µs+124µs) by Module::Runtime::require_module at line 12 # spent 132µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@12
# spent 124µs making 1 call to experimental::import |
| 13 | 2 | 25µs | 2 | 145µs | # spent 103µs (11+92) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13 which was called:
# once (11µs+92µs) by Module::Runtime::require_module at line 13 # spent 103µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@13
# spent 42µs making 1 call to if::import |
| 14 | 2 | 41µs | 2 | 29µs | # spent 26µs (7+19) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14 which was called:
# once (7µs+19µs) by Module::Runtime::require_module at line 14 # spent 26µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@14
# spent 3µs making 1 call to if::unimport |
| 15 | 2 | 18µs | 2 | 51µs | # spent 50µs (42+8) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15 which was called:
# once (42µs+8µs) by Module::Runtime::require_module at line 15 # spent 50µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@15
# spent 1µs making 1 call to if::unimport |
| 16 | 2 | 16µs | 2 | 46µs | # spent 46µs (40+6) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@16 which was called:
# once (40µs+6µs) by Module::Runtime::require_module at line 16 # spent 46µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@16
# spent 0s making 1 call to if::unimport |
| 17 | 2 | 18µs | 2 | 129µs | # spent 68µs (7+61) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17 which was called:
# once (7µs+61µs) by Module::Runtime::require_module at line 17 # spent 68µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@17
# spent 61µs making 1 call to Exporter::import |
| 18 | 2 | 506µs | 2 | 449µs | # spent 228µs (7+221) within JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18 which was called:
# once (7µs+221µs) by Module::Runtime::require_module at line 18 # spent 228µs making 1 call to JSON::Schema::Modern::Vocabulary::MetaData::BEGIN@18
# spent 221µs making 1 call to namespace::clean::import |
| 19 | |||||
| 20 | 1 | 1µs | 1 | 337µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 337µs making 1 call to Moo::with |
| 21 | |||||
| 22 | # spent 0s within JSON::Schema::Modern::Vocabulary::MetaData::vocabulary which was called:
# once (0s+0s) by JSON::Schema::Modern::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern.pm:700] at line 696 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 | 4µs | # spent 2µs within JSON::Schema::Modern::Vocabulary::MetaData::evaluation_order which was called 5 times, avg 400ns/call:
# 5 times (2µs+0s) by JSON::Schema::Modern::Vocabulary::Core::CORE:sort at line 331 of JSON/Schema/Modern/Vocabulary/Core.pm, avg 400ns/call | ||
| 28 | |||||
| 29 | 6 | 2µs | # spent 9µs within JSON::Schema::Modern::Vocabulary::MetaData::keywords which was called 2 times, avg 4µs/call:
# once (6µs+0s) by JSON::Schema::Modern::_eval_subschema at line 563 of JSON/Schema/Modern.pm
# once (3µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 475 of JSON/Schema/Modern.pm | ||
| 30 | return ( | ||||
| 31 | 2 | 10µs | qw(title description default), | ||
| 32 | $spec_version ne 'draft7' ? 'deprecated' : (), | ||||
| 33 | qw(readOnly writeOnly examples), | ||||
| 34 | ); | ||||
| 35 | } | ||||
| 36 | |||||
| 37 | 524 | 116µs | # spent 1.86ms (537µs+1.33) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title which was called 131 times, avg 14µs/call:
# 97 times (349µs+1.00ms) by JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description at line 46, avg 14µs/call
# 34 times (188µs+323µs) by JSON::Schema::Modern::_traverse_subschema at line 487 of JSON/Schema/Modern.pm, avg 15µs/call | ||
| 38 | 131 | 142µs | 131 | 1.33ms | return if not assert_keyword_type($state, $schema, 'string'); # spent 1.33ms making 131 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 10µs/call |
| 39 | 131 | 240µs | return 1; | ||
| 40 | } | ||||
| 41 | |||||
| 42 | 161070 | 29.4ms | # spent 2.52s (133ms+2.39) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title which was called 32214 times, avg 78µs/call:
# 25860 times (116ms+1.92s) by JSON::Schema::Modern::_eval_subschema at line 578 of JSON/Schema/Modern.pm, avg 79µs/call
# 5174 times (12.9ms+310ms) by JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description at line 48, avg 62µs/call
# 1180 times (4.94ms+159ms) by JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default at line 52, avg 139µs/call | ||
| 43 | 32214 | 102ms | 32214 | 2.39s | annotate_self($state, $schema); # spent 2.39s making 32214 calls to JSON::Schema::Modern::Utilities::annotate_self, avg 74µs/call |
| 44 | } | ||||
| 45 | |||||
| 46 | 97 | 316µs | 97 | 1.35ms | # spent 1.75ms (394µs+1.35) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_description which was called 97 times, avg 18µs/call:
# 97 times (394µs+1.35ms) by JSON::Schema::Modern::_traverse_subschema at line 487 of JSON/Schema/Modern.pm, avg 18µs/call # spent 1.35ms making 97 calls to JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_title, avg 14µs/call |
| 47 | |||||
| 48 | 5174 | 18.5ms | 5174 | 323ms | # spent 343ms (20.0+323) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_description which was called 5174 times, avg 66µs/call:
# 5174 times (20.0ms+323ms) by JSON::Schema::Modern::_eval_subschema at line 578 of JSON/Schema/Modern.pm, avg 66µs/call # spent 323ms making 5174 calls to JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title, avg 62µs/call |
| 49 | |||||
| 50 | 98 | 148µs | # spent 121µs within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_default which was called 98 times, avg 1µs/call:
# 98 times (121µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 487 of JSON/Schema/Modern.pm, avg 1µs/call | ||
| 51 | |||||
| 52 | 1180 | 5.34ms | 1180 | 164ms | # spent 171ms (6.57+164) within JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_default which was called 1180 times, avg 145µs/call:
# 1180 times (6.57ms+164ms) by JSON::Schema::Modern::_eval_subschema at line 578 of JSON/Schema/Modern.pm, avg 145µs/call # spent 164ms making 1180 calls to JSON::Schema::Modern::Vocabulary::MetaData::_eval_keyword_title, avg 139µs/call |
| 53 | |||||
| 54 | 600 | 66µs | # spent 2.54ms (503µs+2.04) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated which was called 150 times, avg 17µs/call:
# 135 times (467µs+1.91ms) by JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly at line 61, avg 18µs/call
# 15 times (36µs+132µs) by JSON::Schema::Modern::_traverse_subschema at line 487 of JSON/Schema/Modern.pm, avg 11µs/call | ||
| 55 | 150 | 131µs | 150 | 2.04ms | return if not assert_keyword_type($state, $schema, 'boolean'); # spent 2.04ms making 150 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 14µs/call |
| 56 | 150 | 245µs | return 1; | ||
| 57 | } | ||||
| 58 | |||||
| 59 | sub _eval_keyword_deprecated { shift->_eval_keyword_title(@_) } | ||||
| 60 | |||||
| 61 | 135 | 475µs | 135 | 2.37ms | # spent 2.86ms (487µs+2.37) within JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_readOnly which was called 135 times, avg 21µs/call:
# 135 times (487µs+2.37ms) by JSON::Schema::Modern::_traverse_subschema at line 487 of JSON/Schema/Modern.pm, avg 21µs/call # spent 2.37ms making 135 calls to JSON::Schema::Modern::Vocabulary::MetaData::_traverse_keyword_deprecated, avg 18µ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 | 4µs | 1; | ||
| 77 | |||||
| 78 | 1 | 17µs | 1 | 162µs | __END__ # spent 162µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |