← Index
NYTProf Performance Profile   « line view »
For ../prof.pl
  Run on Wed Dec 14 15:57:08 2022
Reported on Wed Dec 14 16:00:37 2022

Filename/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm
StatementsExecuted 13340 statements in 15.5ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21671115.6ms611msJSON::Schema::Modern::Vocabulary::FormatAnnotation::::_eval_keyword_formatJSON::Schema::Modern::Vocabulary::FormatAnnotation::_eval_keyword_format
5011247µs705µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::_traverse_keyword_formatJSON::Schema::Modern::Vocabulary::FormatAnnotation::_traverse_keyword_format
11186µs114µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@15JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15
11147µs68µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@16JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16
11128µs32µsModule::Runtime::::BEGIN@1.314 Module::Runtime::BEGIN@1.314
11116µs915µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@11JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11
11113µs28µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@14JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14
11112µs35µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@13JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13
11110µs10µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@9JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@9
1118µs102µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@12JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12
1117µs43µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@17JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17
1116µs187µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@10JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10
1116µs150µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@19JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19
1115µs28µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@18JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18
1115µs32µsModule::Runtime::::BEGIN@2.315 Module::Runtime::BEGIN@2.315
2214µs4µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::keywordsJSON::Schema::Modern::Vocabulary::FormatAnnotation::keywords
5113µs3µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::evaluation_orderJSON::Schema::Modern::Vocabulary::FormatAnnotation::evaluation_order
1111µs1µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::vocabularyJSON::Schema::Modern::Vocabulary::FormatAnnotation::vocabulary
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1229µs236µ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
use strict;
# spent 32µs making 1 call to Module::Runtime::BEGIN@1.314 # spent 4µs making 1 call to strict::import
2236µs259µ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
use warnings;
# spent 32µs making 1 call to Module::Runtime::BEGIN@2.315 # spent 27µs making 1 call to warnings::import
3package 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
710sour $VERSION = '0.556';
8
9225µs110µ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
use 5.020;
10222µs2368µ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
use Moo;
# spent 187µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10 # spent 181µs making 1 call to Moo::import
11355µs31.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
use strictures 2;
# 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
12244µs2196µ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
use experimental qw(signatures postderef);
# spent 102µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12 # spent 94µs making 1 call to experimental::import
13224µs238µ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
use if "$]" >= 5.022, experimental => 're_strict';
# spent 35µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13 # spent 3µs making 1 call to if::import
14260µs229µ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
no if "$]" >= 5.031009, feature => 'indirect';
# spent 28µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14 # spent 1µs making 1 call to if::unimport
152102µs2118µ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
no if "$]" >= 5.033001, feature => 'multidimensional';
# spent 114µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15 # spent 4µs making 1 call to if::unimport
16225µs270µ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
no if "$]" >= 5.033006, feature => 'bareword_filehandles';
# spent 68µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16 # spent 2µs making 1 call to if::unimport
17218µs279µ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
use JSON::Schema::Modern::Utilities qw(is_type E A assert_keyword_type);
# spent 43µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17 # spent 36µs making 1 call to Exporter::import
18216µs251µ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
use Feature::Compat::Try;
# 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
192193µs2294µ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
use namespace::clean;
# 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
2111µs1310µswith '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
sub vocabulary {
2412µ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
28512µ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
sub evaluation_order { 3 }
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
sub keywords {
3128µs qw(format);
32}
33
3420024µ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
sub _traverse_keyword_format ($self, $schema, $state) {
3550113µs50458µ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
365076µs return 1;
37}
38
39108353.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
sub _eval_keyword_format ($self, $data, $schema, $state) {
40216711.1ms2167595ms return A($state, $schema->{format});
# spent 595ms making 2167 calls to JSON::Schema::Modern::Utilities::A, avg 275µs/call
41}
42
4315µs1;
44
45119µs1196µs__END__