Profile of Test2/Formatter.pm

← Index
NYTProf Performance Profile «line view»
For t/bug-md-11.t
Run on Fri Mar 8 13:27:24 2024
Reported on Fri Mar 8 13:30:23 2024

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

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 9µs | 11µs | Test2::Formatter::::BEGIN@2Test2::Formatter::BEGIN@2
1 | 1 | 1 | 4µs | 12µs | Test2::Formatter::::importTest2::Formatter::import
1 | 1 | 1 | 3µs | 18µs | Test2::Formatter::::BEGIN@3Test2::Formatter::BEGIN@3
1 | 1 | 1 | 2µs | 93µs | Test2::Formatter::::new_rootTest2::Formatter::new_root
1 | 1 | 1 | 700ns | 700ns | Test2::Formatter::::finalizeTest2::Formatter::finalize
0 | 0 | 0 | 0s | 0s | Test2::Formatter::::hide_bufferedTest2::Formatter::hide_buffered
0 | 0 | 0 | 0s | 0s | Test2::Formatter::::supports_tablesTest2::Formatter::supports_tables
0 | 0 | 0 | 0s | 0s | Test2::Formatter::::terminateTest2::Formatter::terminate

Call graph for these subroutines as a Graphviz dot language file.

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 use strict; # 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 use warnings; # 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 sub import {
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 sub new_root {
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 sub finalize { }
29 |  |  |  |  |
30 | 1 | 2µs |  |  | 1;
31 |  |  |  |  |
32 |  |  |  |  | __END__