Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm |
Statements | Executed 13340 statements in 15.5ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2167 | 1 | 1 | 15.6ms | 611ms | _eval_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
50 | 1 | 1 | 247µs | 705µs | _traverse_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 86µs | 114µs | BEGIN@15 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 47µs | 68µs | BEGIN@16 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 28µs | 32µs | BEGIN@1.314 | Module::Runtime::
1 | 1 | 1 | 16µs | 915µs | BEGIN@11 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 13µs | 28µs | BEGIN@14 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 12µs | 35µs | BEGIN@13 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 10µs | 10µs | BEGIN@9 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 8µs | 102µs | BEGIN@12 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 7µs | 43µs | BEGIN@17 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 6µs | 187µs | BEGIN@10 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 6µs | 150µs | BEGIN@19 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 5µs | 28µs | BEGIN@18 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 5µs | 32µs | BEGIN@2.315 | Module::Runtime::
2 | 2 | 1 | 4µs | 4µs | keywords | 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::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 29µs | 2 | 36µs | # spent 32µs (28+4) within Module::Runtime::BEGIN@1.314 which was called:
# once (28µs+4µs) by Module::Runtime::require_module at line 1 # spent 32µs making 1 call to Module::Runtime::BEGIN@1.314
# spent 4µs making 1 call to strict::import |
2 | 2 | 36µs | 2 | 59µs | # spent 32µs (5+27) within Module::Runtime::BEGIN@2.315 which was called:
# once (5µs+27µs) by Module::Runtime::require_module at line 2 # spent 32µs making 1 call to Module::Runtime::BEGIN@2.315
# spent 27µ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.556'; | ||
8 | |||||
9 | 2 | 25µs | 1 | 10µs | # spent 10µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@9 which was called:
# once (10µs+0s) by Module::Runtime::require_module at line 9 # spent 10µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@9 |
10 | 2 | 22µs | 2 | 368µs | # spent 187µs (6+181) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10 which was called:
# once (6µs+181µs) by Module::Runtime::require_module at line 10 # spent 187µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10
# spent 181µs making 1 call to Moo::import |
11 | 3 | 55µs | 3 | 1.81ms | # spent 915µs (16+899) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11 which was called:
# once (16µs+899µs) by Module::Runtime::require_module at line 11 # spent 915µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11
# spent 880µs making 1 call to strictures::import
# spent 19µs making 1 call to strictures::VERSION |
12 | 2 | 44µs | 2 | 196µs | # spent 102µs (8+94) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12 which was called:
# once (8µs+94µs) by Module::Runtime::require_module at line 12 # spent 102µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12
# spent 94µs making 1 call to experimental::import |
13 | 2 | 24µs | 2 | 38µs | # spent 35µs (12+23) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13 which was called:
# once (12µs+23µs) by Module::Runtime::require_module at line 13 # spent 35µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13
# spent 3µs making 1 call to if::import |
14 | 2 | 60µs | 2 | 29µs | # spent 28µs (13+15) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14 which was called:
# once (13µs+15µs) by Module::Runtime::require_module at line 14 # spent 28µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14
# spent 1µs making 1 call to if::unimport |
15 | 2 | 102µs | 2 | 118µs | # spent 114µs (86+28) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15 which was called:
# once (86µs+28µs) by Module::Runtime::require_module at line 15 # spent 114µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15
# spent 4µs making 1 call to if::unimport |
16 | 2 | 25µs | 2 | 70µs | # spent 68µs (47+21) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16 which was called:
# once (47µs+21µs) by Module::Runtime::require_module at line 16 # spent 68µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16
# spent 2µs making 1 call to if::unimport |
17 | 2 | 18µs | 2 | 79µs | # spent 43µs (7+36) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17 which was called:
# once (7µs+36µs) by Module::Runtime::require_module at line 17 # spent 43µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17
# spent 36µs making 1 call to Exporter::import |
18 | 2 | 16µs | 2 | 51µs | # spent 28µs (5+23) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18 which was called:
# once (5µs+23µs) by Module::Runtime::require_module at line 18 # spent 28µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18
# spent 23µs making 1 call to Feature::Compat::Try::import |
19 | 2 | 193µs | 2 | 294µs | # spent 150µs (6+144) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19 which was called:
# once (6µs+144µs) by Module::Runtime::require_module at line 19 # spent 150µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19
# spent 144µs making 1 call to namespace::clean::import |
20 | |||||
21 | 1 | 1µs | 1 | 310µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 310µ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:696] at line 692 of 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 | 12µ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 331 of JSON/Schema/Modern/Vocabulary/Core.pm, avg 600ns/call | ||
29 | |||||
30 | # spent 4µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::keywords which was called 2 times, avg 2µs/call:
# once (2µs+0s) by JSON::Schema::Modern::_traverse_subschema at line 471 of JSON/Schema/Modern.pm
# once (2µs+0s) by JSON::Schema::Modern::_eval_subschema at line 559 of JSON/Schema/Modern.pm | ||||
31 | 2 | 8µs | qw(format); | ||
32 | } | ||||
33 | |||||
34 | 200 | 24µs | # spent 705µs (247+458) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::_traverse_keyword_format which was called 50 times, avg 14µs/call:
# 50 times (247µs+458µs) by JSON::Schema::Modern::_traverse_subschema at line 483 of JSON/Schema/Modern.pm, avg 14µs/call | ||
35 | 50 | 113µs | 50 | 458µs | return if not assert_keyword_type($state, $schema, 'string'); # spent 458µs making 50 calls to JSON::Schema::Modern::Utilities::assert_keyword_type, avg 9µs/call |
36 | 50 | 76µs | return 1; | ||
37 | } | ||||
38 | |||||
39 | 10835 | 3.43ms | # spent 611ms (15.6+595) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::_eval_keyword_format which was called 2167 times, avg 282µs/call:
# 2167 times (15.6ms+595ms) by JSON::Schema::Modern::_eval_subschema at line 574 of JSON/Schema/Modern.pm, avg 282µs/call | ||
40 | 2167 | 11.1ms | 2167 | 595ms | return A($state, $schema->{format}); # spent 595ms making 2167 calls to JSON::Schema::Modern::Utilities::A, avg 275µs/call |
41 | } | ||||
42 | |||||
43 | 1 | 5µs | 1; | ||
44 | |||||
45 | 1 | 19µs | 1 | 196µs | __END__ # spent 196µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |