| Filename | /home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/Test2/Formatter.pm |
| Statements | Executed 15 statements in 124µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 9µs | 11µs | Test2::Formatter::BEGIN@2 |
| 1 | 1 | 1 | 4µs | 12µs | Test2::Formatter::import |
| 1 | 1 | 1 | 3µs | 18µs | Test2::Formatter::BEGIN@3 |
| 1 | 1 | 1 | 2µs | 93µs | Test2::Formatter::new_root |
| 1 | 1 | 1 | 700ns | 700ns | Test2::Formatter::finalize |
| 0 | 0 | 0 | 0s | 0s | Test2::Formatter::hide_buffered |
| 0 | 0 | 0 | 0s | 0s | Test2::Formatter::supports_tables |
| 0 | 0 | 0 | 0s | 0s | Test2::Formatter::terminate |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Test2::Formatter; | ||||
| 2 | 2 | 18µs | 2 | 12µs | # spent 11µs (9+2) within Test2::Formatter::BEGIN@2 which was called:
# once (9µs+2µs) by Test2::Formatter::TAP::BEGIN@17 at line 2 # spent 11µs making 1 call to Test2::Formatter::BEGIN@2
# spent 2µs making 1 call to strict::import |
| 3 | 2 | 94µs | 2 | 34µs | # spent 18µs (3+15) within Test2::Formatter::BEGIN@3 which was called:
# once (3µs+15µs) by Test2::Formatter::TAP::BEGIN@17 at line 3 # spent 18µs making 1 call to Test2::Formatter::BEGIN@3
# spent 15µs making 1 call to warnings::import |
| 4 | |||||
| 5 | 1 | 200ns | our $VERSION = '1.302198'; | ||
| 6 | |||||
| 7 | |||||
| 8 | 1 | 200ns | my %ADDED; | ||
| 9 | # spent 12µs (4+7) within Test2::Formatter::import which was called:
# once (4µs+7µs) by Test::Builder::BEGIN@36 at line 36 of Test/Builder.pm | ||||
| 10 | 1 | 300ns | my $class = shift; | ||
| 11 | 1 | 400ns | return if $class eq __PACKAGE__; | ||
| 12 | 1 | 800ns | return if $ADDED{$class}++; | ||
| 13 | 1 | 500ns | require Test2::API; | ||
| 14 | 1 | 2µs | 1 | 8µs | Test2::API::test2_formatter_add($class); # spent 8µs making 1 call to Test2::API::test2_formatter_add |
| 15 | } | ||||
| 16 | |||||
| 17 | # spent 93µs (2+90) within Test2::Formatter::new_root which was called:
# once (2µs+90µs) by Test2::API::Stack::new_hub at line 31 of Test2/API/Stack.pm | ||||
| 18 | 1 | 200ns | my $class = shift; | ||
| 19 | 1 | 2µs | 1 | 90µs | return $class->new(@_); # spent 90µs making 1 call to Test2::Util::HashBase::_new |
| 20 | } | ||||
| 21 | |||||
| 22 | sub supports_tables { 0 } | ||||
| 23 | |||||
| 24 | sub hide_buffered { 1 } | ||||
| 25 | |||||
| 26 | sub terminate { } | ||||
| 27 | |||||
| 28 | 1 | 3µs | # spent 700ns within Test2::Formatter::finalize which was called:
# once (700ns+0s) by Test2::Hub::finalize at line 461 of Test2/Hub.pm | ||
| 29 | |||||
| 30 | 1 | 2µs | 1; | ||
| 31 | |||||
| 32 | __END__ |