← 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/EventFacet/Meta.pm
StatementsExecuted 15 statements in 306µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111448µs506µsTest2::EventFacet::Meta::::BEGIN@8Test2::EventFacet::Meta::BEGIN@8
1119µs11µsTest2::EventFacet::Meta::::BEGIN@2Test2::EventFacet::Meta::BEGIN@2
1116µs6µsTest2::EventFacet::Meta::::BEGIN@7Test2::EventFacet::Meta::BEGIN@7
1116µs10µsTest2::EventFacet::Meta::::BEGIN@30Test2::EventFacet::Meta::BEGIN@30
1115µs18µsTest2::EventFacet::Meta::::BEGIN@12Test2::EventFacet::Meta::BEGIN@12
1113µs18µsTest2::EventFacet::Meta::::BEGIN@3Test2::EventFacet::Meta::BEGIN@3
0000s0sTest2::EventFacet::Meta::::AUTOLOADTest2::EventFacet::Meta::AUTOLOAD
0000s0sTest2::EventFacet::Meta::::__ANON__[:28]Test2::EventFacet::Meta::__ANON__[:28]
0000s0sTest2::EventFacet::Meta::::canTest2::EventFacet::Meta::can
0000s0sTest2::EventFacet::Meta::::set_detailsTest2::EventFacet::Meta::set_details
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Test2::EventFacet::Meta;
2217µs212µs
# spent 11µs (9+1) within Test2::EventFacet::Meta::BEGIN@2 which was called: # once (9µs+1µs) by Test2::Event::BEGIN@20 at line 2
use strict;
# spent 11µs making 1 call to Test2::EventFacet::Meta::BEGIN@2 # spent 2µs making 1 call to strict::import
3233µs234µs
# spent 18µs (3+15) within Test2::EventFacet::Meta::BEGIN@3 which was called: # once (3µs+15µs) by Test2::Event::BEGIN@20 at line 3
use warnings;
# spent 18µs making 1 call to Test2::EventFacet::Meta::BEGIN@3 # spent 16µs making 1 call to warnings::import
4
51200nsour $VERSION = '1.302198';
6
7220µs16µs
# spent 6µs within Test2::EventFacet::Meta::BEGIN@7 which was called: # once (6µs+0s) by Test2::Event::BEGIN@20 at line 7
BEGIN { require Test2::EventFacet; our @ISA = qw(Test2::EventFacet) }
# spent 6µs making 1 call to Test2::EventFacet::Meta::BEGIN@7
8285µs2525µs
# spent 506µs (448+59) within Test2::EventFacet::Meta::BEGIN@8 which was called: # once (448µs+59µs) by Test2::Event::BEGIN@20 at line 8
use vars qw/$AUTOLOAD/;
# spent 506µs making 1 call to Test2::EventFacet::Meta::BEGIN@8 # spent 19µs making 1 call to vars::import
9
10# replace set_details
11{
12271µs232µs
# spent 18µs (5+13) within Test2::EventFacet::Meta::BEGIN@12 which was called: # once (5µs+13µs) by Test2::Event::BEGIN@20 at line 12
no warnings 'redefine';
# spent 18µs making 1 call to Test2::EventFacet::Meta::BEGIN@12 # spent 13µs making 1 call to warnings::unimport
13 sub set_details { $_[0]->{'set_details'} }
14}
15
161400nssub can {
17 my $self = shift;
18 my ($name) = @_;
19
20 my $existing = $self->SUPER::can($name);
21 return $existing if $existing;
22
23 # Only vivify when called on an instance, do not vivify for a class. There
24 # are a lot of magic class methods used in things like serialization (or
25 # the forks.pm module) which cause problems when vivified.
26 return undef unless ref($self);
27
28 my $sub = sub { $_[0]->{$name} };
29 {
30277µs214µs
# spent 10µs (6+4) within Test2::EventFacet::Meta::BEGIN@30 which was called: # once (6µs+4µs) by Test2::Event::BEGIN@20 at line 30
no strict 'refs';
# spent 10µs making 1 call to Test2::EventFacet::Meta::BEGIN@30 # spent 4µs making 1 call to strict::unimport
31 *$name = $sub;
32 }
33
34 return $sub;
35}
36
37sub AUTOLOAD {
38 my $name = $AUTOLOAD;
39 $name =~ s/^.*:://g;
40 my $sub = $_[0]->can($name);
41 goto &$sub;
42}
43
4412µs1;
45
46__END__