← Index
NYTProf Performance Profile   « line view »
For ../prof.pl
  Run on Wed Dec 14 16:10:05 2022
Reported on Wed Dec 14 16:12:58 2022

Filename/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm
StatementsExecuted 13340 statements in 32.7ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21671115.8ms186msJSON::Schema::Modern::Vocabulary::FormatAnnotation::::_eval_keyword_formatJSON::Schema::Modern::Vocabulary::FormatAnnotation::_eval_keyword_format
5011212µs639µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::_traverse_keyword_formatJSON::Schema::Modern::Vocabulary::FormatAnnotation::_traverse_keyword_format
11130µs33µsModule::Runtime::::BEGIN@1.315 Module::Runtime::BEGIN@1.315
11114µs679µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@11JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@11
11112µs26µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@14JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14
11110µs33µ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
1117µs16µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@15JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15
1117µs15µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@16JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16
1115µs90µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@12JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12
1115µs36µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@17JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17
1115µs31µsModule::Runtime::::BEGIN@2.316 Module::Runtime::BEGIN@2.316
1114µs180µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@10JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10
1114µs150µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@19JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@19
1113µs20µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::BEGIN@18JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@18
2213µs3µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::keywordsJSON::Schema::Modern::Vocabulary::FormatAnnotation::keywords
5112µs2µsJSON::Schema::Modern::Vocabulary::FormatAnnotation::::evaluation_orderJSON::Schema::Modern::Vocabulary::FormatAnnotation::evaluation_order
1112µs2µ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
1228µs236µ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
use strict;
# spent 33µs making 1 call to Module::Runtime::BEGIN@1.315 # spent 3µs making 1 call to strict::import
2236µs257µ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
use warnings;
# spent 31µs making 1 call to Module::Runtime::BEGIN@2.316 # spent 26µ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
711µsour $VERSION = '0.558';
8
9227µ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;
10219µs2356µ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
use Moo;
# spent 180µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@10 # spent 176µs making 1 call to Moo::import
11327µs31.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
use strictures 2;
# 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
12228µs2175µ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
use experimental qw(signatures postderef);
# spent 90µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@12 # spent 85µs making 1 call to experimental::import
13222µs237µ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
use if "$]" >= 5.022, experimental => 're_strict';
# spent 33µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@13 # spent 4µs making 1 call to if::import
14218µs227µ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
no if "$]" >= 5.031009, feature => 'indirect';
# spent 26µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@14 # spent 1µs making 1 call to if::unimport
15222µs216µ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
no if "$]" >= 5.033001, feature => 'multidimensional';
# spent 16µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@15 # spent 0s making 1 call to if::unimport
16215µs216µ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
no if "$]" >= 5.033006, feature => 'bareword_filehandles';
# spent 15µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@16 # spent 1µs making 1 call to if::unimport
17215µs267µ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
use JSON::Schema::Modern::Utilities qw(is_type E A assert_keyword_type);
# spent 36µs making 1 call to JSON::Schema::Modern::Vocabulary::FormatAnnotation::BEGIN@17 # spent 31µs making 1 call to Exporter::import
18211µs237µ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
use Feature::Compat::Try;
# 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
192165µs2296µ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
use namespace::clean;
# 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
2110s1301µswith '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
sub vocabulary {
2413µ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
2856µ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
sub evaluation_order { 3 }
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
sub keywords {
3125µs qw(format);
32}
33
3420040µ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
sub _traverse_keyword_format ($self, $schema, $state) {
355050µs50427µ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
365076µs return 1;
37}
38
39108353.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
sub _eval_keyword_format ($self, $data, $schema, $state) {
40216728.6ms2167170ms return A($state, $schema->{format});
# spent 170ms making 2167 calls to JSON::Schema::Modern::Utilities::A, avg 79µs/call
41}
42
4314µs1;
44
45113µs1194µs__END__