← 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/Hub/Subtest.pm
StatementsExecuted 22 statements in 379µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11110µs11µsTest2::Hub::Subtest::::BEGIN@2Test2::Hub::Subtest::BEGIN@2
1119µs19µsTest2::Hub::Subtest::::BEGIN@66Test2::Hub::Subtest::BEGIN@66
1117µs20µsTest2::Hub::Subtest::::BEGIN@24Test2::Hub::Subtest::BEGIN@24
1116µs6µsTest2::Hub::Subtest::::BEGIN@7Test2::Hub::Subtest::BEGIN@7
1114µs16µsTest2::Hub::Subtest::::BEGIN@47Test2::Hub::Subtest::BEGIN@47
1114µs76µsTest2::Hub::Subtest::::BEGIN@8Test2::Hub::Subtest::BEGIN@8
1114µs20µsTest2::Hub::Subtest::::BEGIN@9Test2::Hub::Subtest::BEGIN@9
1113µs20µsTest2::Hub::Subtest::::BEGIN@3Test2::Hub::Subtest::BEGIN@3
0000s0sTest2::Hub::Subtest::::inheritTest2::Hub::Subtest::inherit
0000s0sTest2::Hub::Subtest::::is_subtestTest2::Hub::Subtest::is_subtest
0000s0sTest2::Hub::Subtest::::sendTest2::Hub::Subtest::send
0000s0sTest2::Hub::Subtest::::terminateTest2::Hub::Subtest::terminate
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Test2::Hub::Subtest;
2218µs212µs
# spent 11µs (10+1) within Test2::Hub::Subtest::BEGIN@2 which was called: # once (10µs+1µs) by Test2::API::BEGIN@88 at line 2
use strict;
# spent 11µs making 1 call to Test2::Hub::Subtest::BEGIN@2 # spent 2µs making 1 call to strict::import
3235µs237µs
# spent 20µs (3+17) within Test2::Hub::Subtest::BEGIN@3 which was called: # once (3µs+17µs) by Test2::API::BEGIN@88 at line 3
use warnings;
# spent 20µs making 1 call to Test2::Hub::Subtest::BEGIN@3 # spent 17µs making 1 call to warnings::import
4
51300nsour $VERSION = '1.302198';
6
7226µs16µs
# spent 6µs within Test2::Hub::Subtest::BEGIN@7 which was called: # once (6µs+0s) by Test2::API::BEGIN@88 at line 7
BEGIN { require Test2::Hub; our @ISA = qw(Test2::Hub) }
# spent 6µs making 1 call to Test2::Hub::Subtest::BEGIN@7
8222µs2148µs
# spent 76µs (4+72) within Test2::Hub::Subtest::BEGIN@8 which was called: # once (4µs+72µs) by Test2::API::BEGIN@88 at line 8
use Test2::Util::HashBase qw/nested exit_code manual_skip_all/;
# spent 76µs making 1 call to Test2::Hub::Subtest::BEGIN@8 # spent 72µs making 1 call to Test2::Util::HashBase::import
9262µs235µs
# spent 20µs (4+16) within Test2::Hub::Subtest::BEGIN@9 which was called: # once (4µs+16µs) by Test2::API::BEGIN@88 at line 9
use Test2::Util qw/get_tid/;
# spent 20µs making 1 call to Test2::Hub::Subtest::BEGIN@9 # spent 16µs making 1 call to Exporter::import
10
11sub is_subtest { 1 }
12
13sub inherit {
14 my $self = shift;
15 my ($from) = @_;
16
17 $self->SUPER::inherit($from);
18
19 $self->{+NESTED} = $from->nested + 1;
20}
21
22{
23 # Legacy
24385µs232µs
# spent 20µs (7+13) within Test2::Hub::Subtest::BEGIN@24 which was called: # once (7µs+13µs) by Test2::API::BEGIN@88 at line 24
no warnings 'once';
# spent 20µs making 1 call to Test2::Hub::Subtest::BEGIN@24 # spent 13µs making 1 call to warnings::unimport
2511µs *ID = \&Test2::Hub::HID;
261200ns *id = \&Test2::Hub::hid;
271200ns *set_id = \&Test2::Hub::set_hid;
28}
29
30sub send {
31 my $self = shift;
32 my ($e) = @_;
33
34 my $out = $self->SUPER::send($e);
35
36 return $out if $self->{+MANUAL_SKIP_ALL};
37
38 my $f = $e->facet_data;
39
40 my $plan = $f->{plan} or return $out;
41 return $out unless $plan->{skip};
42
43 my $trace = $f->{trace} or die "Missing Trace!";
44 return $out unless $trace->{pid} != $self->pid
45 || $trace->{tid} != $self->tid;
46
47287µs228µs
# spent 16µs (4+12) within Test2::Hub::Subtest::BEGIN@47 which was called: # once (4µs+12µs) by Test2::API::BEGIN@88 at line 47
no warnings 'exiting';
# spent 16µs making 1 call to Test2::Hub::Subtest::BEGIN@47 # spent 12µs making 1 call to warnings::unimport
48 last T2_SUBTEST_WRAPPER;
49}
50
51sub terminate {
52 my $self = shift;
53 my ($code, $e, $f) = @_;
54 $self->set_exit_code($code);
55
56 return if $self->{+MANUAL_SKIP_ALL};
57
58 $f ||= $e->facet_data;
59
60 if(my $plan = $f->{plan}) {
61 my $trace = $f->{trace} or die "Missing Trace!";
62 return if $plan->{skip}
63 && ($trace->{pid} != $$ || $trace->{tid} != get_tid);
64 }
65
66238µs230µs
# spent 19µs (9+11) within Test2::Hub::Subtest::BEGIN@66 which was called: # once (9µs+11µs) by Test2::API::BEGIN@88 at line 66
no warnings 'exiting';
# spent 19µs making 1 call to Test2::Hub::Subtest::BEGIN@66 # spent 11µs making 1 call to warnings::unimport
67 last T2_SUBTEST_WRAPPER;
68}
69
7013µs1;
71
72__END__