Filename | /opt/flows/lib/lib/perl5/Search/Elasticsearch/Logger/LogAny.pm |
Statements | Executed 22 statements in 557µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 782µs | 3.77ms | BEGIN@8 | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 314µs | 403µs | BEGIN@9 | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 30µs | 189µs | _build_trace_handle | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 19µs | 2.49ms | _build_log_handle | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 16µs | 323µs | BEGIN@3 | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 9µs | 221µs | BEGIN@5 | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 9µs | 218µs | BEGIN@6 | Search::Elasticsearch::Logger::LogAny::
1 | 1 | 1 | 8µs | 43µs | __ANON__[:3] | Search::Elasticsearch::Logger::LogAny::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Search::Elasticsearch::Logger::LogAny; | ||||
2 | 1 | 500ns | $Search::Elasticsearch::Logger::LogAny::VERSION = '2.02'; | ||
3 | 4 | 56µs | 3 | 665µs | # spent 323µs (16+306) within Search::Elasticsearch::Logger::LogAny::BEGIN@3 which was called:
# once (16µs+306µs) by Module::Runtime::require_module at line 3
# spent 43µs (8+35) within Search::Elasticsearch::Logger::LogAny::__ANON__[/opt/flows/lib/lib/perl5/Search/Elasticsearch/Logger/LogAny.pm:3] which was called:
# once (8µs+35µs) by import::into at line 34 of Import/Into.pm # spent 323µs making 1 call to Search::Elasticsearch::Logger::LogAny::BEGIN@3
# spent 306µs making 1 call to Moo::import
# spent 35µs making 1 call to strictures::import |
4 | 1 | 1µs | 1 | 8.77ms | with 'Search::Elasticsearch::Role::Logger'; # spent 8.77ms making 1 call to Moo::with |
5 | 2 | 37µs | 2 | 432µs | # spent 221µs (9+212) within Search::Elasticsearch::Logger::LogAny::BEGIN@5 which was called:
# once (9µs+212µs) by Module::Runtime::require_module at line 5 # spent 221µs making 1 call to Search::Elasticsearch::Logger::LogAny::BEGIN@5
# spent 212µs making 1 call to Sub::Exporter::__ANON__[/opt/flows/lib/lib/perl5/Sub/Exporter.pm:337] |
6 | 2 | 38µs | 2 | 427µs | # spent 218µs (9+209) within Search::Elasticsearch::Logger::LogAny::BEGIN@6 which was called:
# once (9µs+209µs) by Module::Runtime::require_module at line 6 # spent 218µs making 1 call to Search::Elasticsearch::Logger::LogAny::BEGIN@6
# spent 209µs making 1 call to namespace::clean::import |
7 | |||||
8 | 3 | 127µs | 2 | 3.78ms | # spent 3.77ms (782µs+2.99) within Search::Elasticsearch::Logger::LogAny::BEGIN@8 which was called:
# once (782µs+2.99ms) by Module::Runtime::require_module at line 8 # spent 3.77ms making 1 call to Search::Elasticsearch::Logger::LogAny::BEGIN@8
# spent 10µs making 1 call to UNIVERSAL::VERSION |
9 | 2 | 234µs | 1 | 403µs | # spent 403µs (314+89) within Search::Elasticsearch::Logger::LogAny::BEGIN@9 which was called:
# once (314µs+89µs) by Module::Runtime::require_module at line 9 # spent 403µs making 1 call to Search::Elasticsearch::Logger::LogAny::BEGIN@9 |
10 | |||||
11 | #=================================== | ||||
12 | # spent 2.49ms (19µs+2.47) within Search::Elasticsearch::Logger::LogAny::_build_log_handle which was called:
# once (19µs+2.47ms) by Search::Elasticsearch::Role::Logger::_assert_log_handle at line 13 of (eval 90)[Sub/Quote.pm:5] | ||||
13 | #=================================== | ||||
14 | 1 | 400ns | my $self = shift; | ||
15 | 1 | 8µs | 2 | 4µs | if ( my @args = to_list( $self->log_to ) ) { # spent 2µs making 1 call to Search::Elasticsearch::Util::to_list
# spent 1µs making 1 call to Search::Elasticsearch::Role::Logger::log_to |
16 | Log::Any::Adapter->set( { category => $self->log_as }, @args ); | ||||
17 | } | ||||
18 | 1 | 10µs | 2 | 2.47ms | Log::Any->get_logger( category => $self->log_as ); # spent 2.47ms making 1 call to Log::Any::get_logger
# spent 800ns making 1 call to Search::Elasticsearch::Role::Logger::log_as |
19 | } | ||||
20 | |||||
21 | #=================================== | ||||
22 | # spent 189µs (30+159) within Search::Elasticsearch::Logger::LogAny::_build_trace_handle which was called:
# once (30µs+159µs) by Search::Elasticsearch::Role::Logger::_assert_trace_handle at line 13 of (eval 109)[Sub/Quote.pm:5] | ||||
23 | #=================================== | ||||
24 | 1 | 700ns | my $self = shift; | ||
25 | 1 | 13µs | 2 | 7µs | if ( my @args = to_list( $self->trace_to ) ) { # spent 5µs making 1 call to Search::Elasticsearch::Util::to_list
# spent 2µs making 1 call to Search::Elasticsearch::Role::Logger::trace_to |
26 | Log::Any::Adapter->set( { category => $self->trace_as }, @args ); | ||||
27 | } | ||||
28 | 1 | 17µs | 2 | 152µs | Log::Any->get_logger( category => $self->trace_as ); # spent 151µs making 1 call to Log::Any::get_logger
# spent 1µs making 1 call to Search::Elasticsearch::Role::Logger::trace_as |
29 | } | ||||
30 | |||||
31 | 1 | 5µs | 1; | ||
32 | |||||
33 | # ABSTRACT: A Log::Any-based Logger implementation | ||||
34 | |||||
35 | 1 | 10µs | 1 | 331µs | __END__ # spent 331µs making 1 call to B::Hooks::EndOfScope::XS::__ANON__[/opt/flows/lib/lib/perl5/B/Hooks/EndOfScope/XS.pm:17] |