Filename | /home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/Test2/Event/Diag.pm |
Statements | Executed 10 statements in 171µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 10µs | 12µs | BEGIN@2 | Test2::Event::Diag::
1 | 1 | 1 | 6µs | 6µs | BEGIN@8 | Test2::Event::Diag::
1 | 1 | 1 | 4µs | 44µs | BEGIN@9 | Test2::Event::Diag::
1 | 1 | 1 | 4µs | 21µs | BEGIN@3 | Test2::Event::Diag::
0 | 0 | 0 | 0s | 0s | diagnostics | Test2::Event::Diag::
0 | 0 | 0 | 0s | 0s | facet_data | Test2::Event::Diag::
0 | 0 | 0 | 0s | 0s | init | Test2::Event::Diag::
0 | 0 | 0 | 0s | 0s | summary | Test2::Event::Diag::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Test2::Event::Diag; | ||||
2 | 2 | 23µs | 2 | 13µs | # spent 12µs (10+2) within Test2::Event::Diag::BEGIN@2 which was called:
# once (10µs+2µs) by Test2::API::BEGIN@93 at line 2 # spent 12µs making 1 call to Test2::Event::Diag::BEGIN@2
# spent 2µs making 1 call to strict::import |
3 | 2 | 32µs | 2 | 38µs | # spent 21µs (4+17) within Test2::Event::Diag::BEGIN@3 which was called:
# once (4µs+17µs) by Test2::API::BEGIN@93 at line 3 # spent 21µs making 1 call to Test2::Event::Diag::BEGIN@3
# spent 17µs making 1 call to warnings::import |
4 | |||||
5 | 1 | 300ns | our $VERSION = '1.302198'; | ||
6 | |||||
7 | |||||
8 | 2 | 27µs | 1 | 6µs | # spent 6µs within Test2::Event::Diag::BEGIN@8 which was called:
# once (6µs+0s) by Test2::API::BEGIN@93 at line 8 # spent 6µs making 1 call to Test2::Event::Diag::BEGIN@8 |
9 | 2 | 87µs | 2 | 84µs | # spent 44µs (4+40) within Test2::Event::Diag::BEGIN@9 which was called:
# once (4µs+40µs) by Test2::API::BEGIN@93 at line 9 # spent 44µs making 1 call to Test2::Event::Diag::BEGIN@9
# spent 40µs making 1 call to Test2::Util::HashBase::import |
10 | |||||
11 | sub init { | ||||
12 | $_[0]->{+MESSAGE} = 'undef' unless defined $_[0]->{+MESSAGE}; | ||||
13 | } | ||||
14 | |||||
15 | sub summary { $_[0]->{+MESSAGE} } | ||||
16 | |||||
17 | sub diagnostics { 1 } | ||||
18 | |||||
19 | sub facet_data { | ||||
20 | my $self = shift; | ||||
21 | |||||
22 | my $out = $self->common_facet_data; | ||||
23 | |||||
24 | $out->{info} = [ | ||||
25 | { | ||||
26 | tag => 'DIAG', | ||||
27 | debug => 1, | ||||
28 | details => $self->{+MESSAGE}, | ||||
29 | } | ||||
30 | ]; | ||||
31 | |||||
32 | return $out; | ||||
33 | } | ||||
34 | |||||
35 | 1 | 2µs | 1; | ||
36 | |||||
37 | __END__ |