Filename | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm |
Statements | Executed 13340 statements in 32.7ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2167 | 1 | 1 | 15.8ms | 186ms | _eval_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
50 | 1 | 1 | 212µs | 639µs | _traverse_keyword_format | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 30µs | 33µs | BEGIN@1.315 | Module::Runtime::
1 | 1 | 1 | 14µs | 679µs | BEGIN@11 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 12µs | 26µs | BEGIN@14 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 10µs | 33µ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 | 7µs | 16µs | BEGIN@15 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 7µs | 15µs | BEGIN@16 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 5µs | 90µs | BEGIN@12 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 5µs | 36µs | BEGIN@17 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 5µs | 31µs | BEGIN@2.316 | Module::Runtime::
1 | 1 | 1 | 4µs | 180µs | BEGIN@10 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 4µs | 150µs | BEGIN@19 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
1 | 1 | 1 | 3µs | 20µs | BEGIN@18 | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
2 | 2 | 1 | 3µs | 3µs | keywords | 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 | vocabulary | JSON::Schema::Modern::Vocabulary::FormatAnnotation::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 28µs | 2 | 36µs | # spent 33µs (30+3) within Module::Runtime::BEGIN@1.315 which was called:
# once (30µs+3µs) by Module::Runtime::require_module at line 1 # spent 33µs making 1 call to Module::Runtime::BEGIN@1.315
# spent 3µs making 1 call to strict::import |
2 | 2 | 36µs | 2 | 57µs | # spent 31µs (5+26) within Module::Runtime::BEGIN@2.316 which was called:
# once (5µs+26µs) by Module::Runtime::require_module at line 2 # spent 31µs making 1 call to Module::Runtime::BEGIN@2.316
# spent 26µ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.558'; | ||
8 | |||||
9 | 2 | 27µ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 | 19µs | 2 | 356µs | # spent 180µs (4+176) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10 which was called:
# once (4µs+176µs) by Module::Runtime::require_module at line 10 # spent 180µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10
# spent 176µs making 1 call to Moo::import |
11 | 3 | 27µs | 3 | 1.34ms | # spent 679µs (14+665) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11 which was called:
# once (14µs+665µs) by Module::Runtime::require_module at line 11 # spent 679µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11
# spent 649µs making 1 call to strictures::import
# spent 16µs making 1 call to strictures::VERSION |
12 | 2 | 28µs | 2 | 175µs | # spent 90µs (5+85) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12 which was called:
# once (5µs+85µs) by Module::Runtime::require_module at line 12 # spent 90µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12
# spent 85µs making 1 call to experimental::import |
13 | 2 | 22µs | 2 | 37µs | # spent 33µs (10+23) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13 which was called:
# once (10µs+23µs) by Module::Runtime::require_module at line 13 # spent 33µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13
# spent 4µs making 1 call to if::import |
14 | 2 | 18µs | 2 | 27µs | # spent 26µs (12+14) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14 which was called:
# once (12µs+14µs) by Module::Runtime::require_module at line 14 # spent 26µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14
# spent 1µs making 1 call to if::unimport |
15 | 2 | 22µs | 2 | 16µs | # spent 16µs (7+9) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15 which was called:
# once (7µs+9µs) by Module::Runtime::require_module at line 15 # spent 16µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15
# spent 0s making 1 call to if::unimport |
16 | 2 | 15µs | 2 | 16µs | # spent 15µs (7+8) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16 which was called:
# once (7µs+8µs) by Module::Runtime::require_module at line 16 # spent 15µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16
# spent 1µs making 1 call to if::unimport |
17 | 2 | 15µs | 2 | 67µs | # spent 36µs (5+31) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17 which was called:
# once (5µs+31µs) by Module::Runtime::require_module at line 17 # spent 36µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17
# spent 31µs making 1 call to Exporter::import |
18 | 2 | 11µs | 2 | 37µs | # spent 20µs (3+17) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18 which was called:
# once (3µs+17µs) by Module::Runtime::require_module at line 18 # spent 20µ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 | 165µs | 2 | 296µs | # spent 150µs (4+146) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19 which was called:
# once (4µs+146µs) by Module::Runtime::require_module at line 19 # spent 150µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19
# spent 146µs making 1 call to namespace::clean::import |
20 | |||||
21 | 1 | 0s | 1 | 301µs | with 'JSON::Schema::Modern::Vocabulary'; # spent 301µs making 1 call to Moo::with |
22 | |||||
23 | # spent 2µs within JSON::Schema::Modern::Vocabulary::FormatAnnotation::vocabulary which was called:
# once (2µs+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 | ||||
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 | 6µ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 331 of JSON/Schema/Modern/Vocabulary/Core.pm, avg 400ns/call | ||
29 | |||||
30 | # spent 3µ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 475 of JSON/Schema/Modern.pm
# once (1µs+0s) by JSON::Schema::Modern::_eval_subschema at line 563 of JSON/Schema/Modern.pm | ||||
31 | 2 | 5µs | qw(format); | ||
32 | } | ||||
33 | |||||
34 | 200 | 40µs | # spent 639µs (212+427) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::_traverse_keyword_format which was called 50 times, avg 13µs/call:
# 50 times (212µs+427µs) by JSON::Schema::Modern::_traverse_subschema at line 487 of JSON/Schema/Modern.pm, avg 13µs/call | ||
35 | 50 | 50µs | 50 | 427µs | return if not assert_keyword_type($state, $schema, 'string'); # spent 427µ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.50ms | # spent 186ms (15.8+170) within JSON::Schema::Modern::Vocabulary::FormatAnnotation::_eval_keyword_format which was called 2167 times, avg 86µs/call:
# 2167 times (15.8ms+170ms) by JSON::Schema::Modern::_eval_subschema at line 578 of JSON/Schema/Modern.pm, avg 86µs/call | ||
40 | 2167 | 28.6ms | 2167 | 170ms | return A($state, $schema->{format}); # spent 170ms making 2167 calls to JSON::Schema::Modern::Utilities::A, avg 79µs/call |
41 | } | ||||
42 | |||||
43 | 1 | 4µs | 1; | ||
44 | |||||
45 | 1 | 13µs | 1 | 194µs | __END__ # spent 194µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[B/Hooks/EndOfScope/XS.pm:26] |