Filename | /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm |
Statements | Executed 337 statements in 710µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
50 | 1 | 1 | 249µs | 660µs | _traverse_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 50µs | 55µs | BEGIN@1.315 | Module::Runtime::
1 | 1 | 1 | 17µs | 674µs | BEGIN@11 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 13µs | 29µs | BEGIN@14 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 11µs | 20µs | BEGIN@15 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 10µs | 31µs | BEGIN@13 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 9µs | 9µs | BEGIN@9 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 8µs | 94µs | BEGIN@12 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 7µs | 247µs | BEGIN@10 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 6µs | 15µs | BEGIN@16 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 6µs | 44µs | BEGIN@2.316 | Module::Runtime::
1 | 1 | 1 | 5µs | 39µs | BEGIN@17 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 5µs | 22µs | BEGIN@18 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 4µs | 145µs | BEGIN@19 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
5 | 1 | 1 | 2µs | 2µs | evaluation_order | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 2µs | 2µs | keywords | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 1µs | 1µs | vocabulary | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
0 | 0 | 0 | 0s | 0s | _eval_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 48µs | 2 | 60µs | # spent 55µs (50+5) within Module::Runtime::BEGIN@1.315 which was called:
# once (50µs+5µs) by Module::Runtime::require_module at line 1 # spent 55µs making 1 call to Module::Runtime::BEGIN@1.315
# spent 5µs making 1 call to strict::import |
2 | 2 | 44µs | 2 | 82µs | # spent 44µs (6+38) within Module::Runtime::BEGIN@2.316 which was called:
# once (6µs+38µs) by Module::Runtime::require_module at line 2 # spent 44µs making 1 call to Module::Runtime::BEGIN@2.316
# spent 38µs making 1 call to warnings::import |
3 | package JSON::Schema::Modern::Vocabulary::FormatAnnotation; | ||||
4 | # vim: set ts=8 sts=2 sw=2 tw=100 et : | ||||
5 | # ABSTRACT: Implementation of the JSON Schema Format-Annotation vocabulary | ||||
6 | |||||
7 | 1 | 0s | our $VERSION = '0.559'; | ||
8 | |||||
9 | 2 | 27µs | 1 | 9µs | # spent 9µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@9 which was called:
# once (9µs+0s) by Module::Runtime::require_module at line 9 # spent 9µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@9 |
10 | 2 | 31µs | 2 | 487µs | # spent 247µs (7+240) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10 which was called:
# once (7µs+240µs) by Module::Runtime::require_module at line 10 # spent 247µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10
# spent 240µs making 1 call to Moo::import |
11 | 3 | 28µs | 3 | 1.33ms | # spent 674µs (17+657) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11 which was called:
# once (17µs+657µs) by Module::Runtime::require_module at line 11 # spent 674µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11
# spent 643µs making 1 call to strictures::import
# spent 14µs making 1 call to strictures::VERSION |
12 | 2 | 31µs | 2 | 180µs | # spent 94µs (8+86) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12 which was called:
# once (8µs+86µs) by Module::Runtime::require_module at line 12 # spent 94µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12
# spent 86µs making 1 call to experimental::import |
13 | 2 | 20µs | 2 | 34µs | # spent 31µs (10+21) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::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::FormatAnnotation::BEGIN@13
# spent 3µs making 1 call to if::import |
14 | 2 | 17µs | 2 | 31µs | # spent 29µs (13+16) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14 which was called:
# once (13µs+16µs) by Module::Runtime::require_module at line 14 # spent 29µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14
# spent 2µs making 1 call to if::unimport |
15 | 2 | 17µs | 2 | 20µs | # spent 20µs (11+9) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15 which was called:
# once (11µs+9µs) by Module::Runtime::require_module at line 15 # spent 20µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15
# spent 0s making 1 call to if::unimport |
16 | 2 | 18µs | 2 | 15µs | # spent 15µs (6+9) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::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::FormatAnnotation::BEGIN@16
# spent 0s making 1 call to if::unimport |
17 | 2 | 15µs | 2 | 73µs | # spent 39µs (5+34) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17 which was called:
# once (5µs+34µs) by Module::Runtime::require_module at line 17 # spent 39µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17
# spent 34µs making 1 call to Exporter::import |
18 | 2 | 13µs | 2 | 39µs | # spent 22µs (5+17) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18 which was called:
# once (5µs+17µs) by Module::Runtime::require_module at line 18 # spent 22µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18
# spent 17µs making 1 call to Feature::Compat::Try::import |
19 | 2 | 184µs | 2 | 286µs | # spent 145µs (4+141) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19 which was called:
# once (4µs+141µs) by Module::Runtime::require_module at line 19 # spent 145µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19
# spent 141µs making 1 call to namespace::clean::import |
20 | |||||
21 | 1 | 1µs | 1 | 307µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 307µs making 1 call to Moo::with |
22 | |||||
23 | # spent 1µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::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 | ||||
24 | 1 | 2µs | 'https://json-schema.org/draft/2019-09/vocab/format' => 'draft2019-09', | ||
25 | 'https://json-schema.org/draft/2020-12/vocab/format-annotation' => 'draft2020-12'; | ||||
26 | } | ||||
27 | |||||
28 | 5 | 5µs | # spent 2µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::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 337 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern/Vocabulary/Core.pm, avg 400ns/call | ||
29 | |||||
30 | # spent 2µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::keywords which was called:
# once (2µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 480 of /Users/ether/git/JSON-Schema-Modern/lib/JSON/Schema/Modern.pm | ||||
31 | 1 | 2µs | qw(format); | ||
32 | } | ||||
33 | |||||
34 | 200 | 65µs | # spent 660µs (249+411) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::_traverse_keyword_format which was called 50 times, avg 13µs/call:
# 50 times (249µs+411µ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 | ||
35 | 50 | 42µs | 50 | 411µs | return if not assert_keyword_type($state, $schema, 'string'); # spent 411µs making 50 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 8µs/call |
36 | 50 | 82µs | return 1; | ||
37 | } | ||||
38 | |||||
39 | sub _eval_keyword_format ($self, $data, $schema, $state) { | ||||
40 | return A($state, $schema->{format}); | ||||
41 | } | ||||
42 | |||||
43 | 1 | 3µs | 1; | ||
44 | 1 | 15µs | 1 | 218µs | __END__ # spent 218µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |