Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm |
Statements | Executed 2816 statements in 4.26ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2480 | 1 | 1 | 2.18ms | 2.18ms | keywords | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
50 | 1 | 1 | 198µs | 718µs | _traverse_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 36µs | 41µs | BEGIN@1.314 | Module::Runtime::
1 | 1 | 1 | 20µs | 958µs | BEGIN@11 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 18µs | 39µs | BEGIN@14 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 15µs | 47µs | BEGIN@13 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 14µs | 14µs | BEGIN@9 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 12µs | 283µs | BEGIN@10 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 11µs | 23µs | BEGIN@16 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 11µs | 62µs | BEGIN@17 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 10µs | 32µs | BEGIN@18 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 9µs | 21µs | BEGIN@15 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 9µs | 208µs | BEGIN@19 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 8µs | 48µs | BEGIN@2.315 | Module::Runtime::
1 | 1 | 1 | 7µs | 155µs | BEGIN@12 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
5 | 1 | 1 | 3µs | 3µs | evaluation_order | 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 | 40µs | 2 | 46µs | # spent 41µs (36+5) within Module::Runtime::BEGIN@1.314 which was called:
# once (36µs+5µs) by Module::Runtime::require_module at line 1 # spent 41µs making 1 call to Module::Runtime::BEGIN@1.314
# spent 5µs making 1 call to strict::import |
2 | 2 | 53µs | 2 | 88µs | # spent 48µs (8+40) within Module::Runtime::BEGIN@2.315 which was called:
# once (8µs+40µs) by Module::Runtime::require_module at line 2 # spent 48µs making 1 call to Module::Runtime::BEGIN@2.315
# spent 40µ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 | 1µs | our $VERSION = '0.552'; | ||
8 | |||||
9 | 2 | 39µs | 1 | 14µs | # spent 14µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::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::FormatAnnotation::BEGIN@9 |
10 | 2 | 32µs | 2 | 554µs | # spent 283µs (12+271) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10 which was called:
# once (12µs+271µs) by Module::Runtime::require_module at line 10 # spent 283µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10
# spent 271µs making 1 call to Moo::import |
11 | 3 | 38µs | 3 | 1.90ms | # spent 958µs (20+938) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11 which was called:
# once (20µs+938µs) by Module::Runtime::require_module at line 11 # spent 958µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11
# spent 918µs making 1 call to strictures::import
# spent 19µs making 1 call to strictures::VERSION |
12 | 2 | 43µs | 2 | 303µs | # spent 155µs (7+148) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12 which was called:
# once (7µs+148µs) by Module::Runtime::require_module at line 12 # spent 155µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12
# spent 148µs making 1 call to experimental::import |
13 | 2 | 32µs | 2 | 50µs | # spent 47µs (15+32) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13 which was called:
# once (15µs+32µs) by Module::Runtime::require_module at line 13 # spent 47µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13
# spent 3µs making 1 call to if::import |
14 | 2 | 31µs | 2 | 41µs | # spent 39µs (18+21) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14 which was called:
# once (18µs+21µs) by Module::Runtime::require_module at line 14 # spent 39µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14
# spent 2µs making 1 call to if::unimport |
15 | 2 | 28µs | 2 | 21µs | # spent 21µs (9+12) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15 which was called:
# once (9µs+12µs) by Module::Runtime::require_module at line 15 # spent 21µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15
# spent 0s making 1 call to if::unimport |
16 | 2 | 33µs | 2 | 23µs | # spent 23µs (11+12) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16 which was called:
# once (11µs+12µs) by Module::Runtime::require_module at line 16 # spent 23µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16
# spent 0s making 1 call to if::unimport |
17 | 2 | 23µs | 2 | 113µs | # spent 62µs (11+51) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17 which was called:
# once (11µs+51µs) by Module::Runtime::require_module at line 17 # spent 62µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17
# spent 51µs making 1 call to Exporter::import |
18 | 2 | 23µs | 2 | 54µs | # spent 32µs (10+22) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18 which was called:
# once (10µs+22µs) by Module::Runtime::require_module at line 18 # spent 32µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18
# spent 22µs making 1 call to Feature::Compat::Try::import |
19 | 2 | 242µs | 2 | 407µs | # spent 208µs (9+199) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19 which was called:
# once (9µs+199µs) by Module::Runtime::require_module at line 19 # spent 208µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19
# spent 199µs making 1 call to namespace::clean::import |
20 | |||||
21 | 1 | 1µs | 1 | 488µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 488µ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/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern.pm:670] at line 666 of JSON/Schema/Modern.pm | ||||
24 | 1 | 3µ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 | 9µs | # spent 3µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::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 322 of JSON/Schema/Modern/Vocabulary/Core.pm, avg 600ns/call | ||
29 | |||||
30 | # spent 2.18ms within JSON::Schema::Modern::Vocabulary::FormatAnnotation::keywords which was called 2480 times, avg 880ns/call:
# 2480 times (2.18ms+0s) by JSON::Schema::Modern::_traverse_subschema at line 447 of JSON/Schema/Modern.pm, avg 880ns/call | ||||
31 | 2480 | 3.39ms | qw(format); | ||
32 | } | ||||
33 | |||||
34 | 200 | 30µs | # spent 718µs (198+520) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::_traverse_keyword_format which was called 50 times, avg 14µs/call:
# 50 times (198µs+520µs) by JSON::Schema::Modern::_traverse_subschema at line 457 of JSON/Schema/Modern.pm, avg 14µs/call | ||
35 | 50 | 58µs | 50 | 520µs | return if not assert_keyword_type($state, $schema, 'string'); # spent 520µs making 50 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 10µs/call |
36 | 50 | 80µs | return 1; | ||
37 | } | ||||
38 | |||||
39 | sub _eval_keyword_format ($self, $data, $schema, $state) { | ||||
40 | return A($state, $schema->{format}); | ||||
41 | } | ||||
42 | |||||
43 | 1 | 7µs | 1; | ||
44 | |||||
45 | 1 | 22µs | 1 | 343µs | __END__ # spent 343µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |