← Index
NYTProf Performance Profile   « line view »
For split.pl
  Run on Thu Apr 20 02:05:47 2023
Reported on Thu Apr 20 18:31:10 2023

Filename/usr/share/perl/5.36/Pod/Simple/TiedOutFH.pm
StatementsExecuted 10 statements in 238µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1117µs9µsPod::Simple::::BEGIN@2 Pod::Simple::BEGIN@2
1117µs18µsPod::Simple::TiedOutFH::::BEGIN@6Pod::Simple::TiedOutFH::BEGIN@6
1115µs22µsPod::Simple::TiedOutFH::::BEGIN@4Pod::Simple::TiedOutFH::BEGIN@4
1112µs2µsPod::Simple::TiedOutFH::::BEGIN@5Pod::Simple::TiedOutFH::BEGIN@5
0000s0sPod::Simple::TiedOutFH::::CLOSEPod::Simple::TiedOutFH::CLOSE
0000s0sPod::Simple::TiedOutFH::::FETCHPod::Simple::TiedOutFH::FETCH
0000s0sPod::Simple::TiedOutFH::::FILENOPod::Simple::TiedOutFH::FILENO
0000s0sPod::Simple::TiedOutFH::::PRINTPod::Simple::TiedOutFH::PRINT
0000s0sPod::Simple::TiedOutFH::::PRINTFPod::Simple::TiedOutFH::PRINTF
0000s0sPod::Simple::TiedOutFH::::TIEHANDLEPod::Simple::TiedOutFH::TIEHANDLE
0000s0sPod::Simple::TiedOutFH::::handle_onPod::Simple::TiedOutFH::handle_on
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2224µs211µs
# spent 9µs (7+2) within Pod::Simple::BEGIN@2 which was called: # once (7µs+2µs) by Pod::Simple::BEGIN@11 at line 2
use strict;
# spent 9µs making 1 call to Pod::Simple::BEGIN@2 # spent 2µs making 1 call to strict::import
3package Pod::Simple::TiedOutFH;
4215µs239µs
# spent 22µs (5+17) within Pod::Simple::TiedOutFH::BEGIN@4 which was called: # once (5µs+17µs) by Pod::Simple::BEGIN@11 at line 4
use Symbol ('gensym');
# spent 22µs making 1 call to Pod::Simple::TiedOutFH::BEGIN@4 # spent 17µs making 1 call to Exporter::import
5210µs12µs
# spent 2µs within Pod::Simple::TiedOutFH::BEGIN@5 which was called: # once (2µs+0s) by Pod::Simple::BEGIN@11 at line 5
use Carp ();
# spent 2µs making 1 call to Pod::Simple::TiedOutFH::BEGIN@5
62187µs228µs
# spent 18µs (7+11) within Pod::Simple::TiedOutFH::BEGIN@6 which was called: # once (7µs+11µs) by Pod::Simple::BEGIN@11 at line 6
use vars qw($VERSION );
# spent 18µs making 1 call to Pod::Simple::TiedOutFH::BEGIN@6 # spent 11µs making 1 call to vars::import
71300ns$VERSION = '3.43';
8
9#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
11sub handle_on { # some horrible frightening things are encapsulated in here
12 my $class = shift;
13 $class = ref($class) || $class;
14
15 Carp::croak "Usage: ${class}->handle_on(\$somescalar)" unless @_;
16
17 my $x = (defined($_[0]) and ref($_[0]))
18 ? $_[0]
19 : ( \( $_[0] ) )[0]
20 ;
21 $$x = '' unless defined $$x;
22
23 #Pod::Simple::DEBUG and print STDERR "New $class handle on $x = \"$$x\"\n";
24
25 my $new = gensym();
26 tie *$new, $class, $x;
27 return $new;
28}
29
30#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
32sub TIEHANDLE { # Ties to just a scalar ref
33 my($class, $scalar_ref) = @_;
34 $$scalar_ref = '' unless defined $$scalar_ref;
35 return bless \$scalar_ref, ref($class) || $class;
36}
37
38sub PRINT {
39 my $it = shift;
40 foreach my $x (@_) { $$$it .= $x }
41
42 #Pod::Simple::DEBUG > 10 and print STDERR " appended to $$it = \"$$$it\"\n";
43
44 return 1;
45}
46
47sub FETCH {
48 return ${$_[0]};
49}
50
51sub PRINTF {
52 my $it = shift;
53 my $format = shift;
54 $$$it .= sprintf $format, @_;
55 return 1;
56}
57
58sub FILENO { ${ $_[0] } + 100 } # just to produce SOME number
59
60sub CLOSE { 1 }
61
62#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6312µs1;
64__END__