Data::Dump::Trace - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation
NAMEData::Dump::Trace − Helpers to trace function and method calls
SYNOPSIS use Data::Dump::Trace qw(autowrap mcall);
autowrap("LWP::UserAgent" => "ua", "HTTP::Response" => "res");
use LWP::UserAgent;
$ua = mcall(LWP::UserAgent => "new"); # instead of LWP::UserAgent−>new;
$ua−>get("http://www.example.com")−>dump;
DESCRIPTIONThe following functions are provided: autowrap( $class ) autowrap( $class => $prefix ) autowrap( $class1 => $prefix1, $class2 => $prefix2, ... ) autowrap( $class1 => \%info1, $class2 => \%info2, ... ) Register classes whose objects are automatically wrapped when returned by one of the call functions below. If $prefix is provided it will be used as to name the objects. Alternative is to pass an %info hash for each class. The recognized keys are: prefix => $string The prefix string used to name objects of this type. proto => \%hash A hash of prototypes to use for the methods when an object is wrapped. wrap( name => $str, func => \&func, proto => $proto ) wrap( name => $str, obj => $obj, proto => \%hash ) Returns a wrapped function or object. When a wrapped function is invoked then a trace is printed after the underlying function has returned. When a method on a wrapped object is invoked then a trace is printed after the methods on the underlying objects has returned. See ‟Prototypes” for description of the proto argument. call( $name, \&func, $proto, @ARGS ) Calls the given function with the given arguments. The trace will use $name as the name of the function. See ‟Prototypes” for description of the $proto argument. mcall( $class, $method, $proto, @ARGS ) mcall( $object, $method, $proto, @ARGS ) Calls the given method with the given arguments. See ‟Prototypes” for description of the $proto argument. trace( $symbol, $prototype ) Replaces the function given by $symbol with a wrapped function.
PrototypesNote: The prototype string syntax described here is experimental and likely to change in revisions of this interface. The $proto argument to call() and mcall() can optionally provide a prototype for the function call. This give the tracer hints about how to best format the argument lists and if there are in/out or out arguments. The general form for the prototype string is: <arguments> = <return_value>
The default prototype is ‟@ = @”; list of values as input and list of values as output. The value '%' can be used for both arguments and return value to say that key/value pair style lists are used. Alternatively, individual positional arguments can be listed each represented by a letter: i input argument o output argument O both input and output argument If the return value prototype has ! appended, then it signals that this function sets errno ($!) when it returns a false value. The trace will display the current value of errno in that case. If the return value prototype looks like a variable name (with $ prefix), and the function returns a blessed object, then the variable name will be used as prefix and the returned object automatically traced.
SEE ALSOData::Dump 0
Johanes Gumabo
Data Size : 15,967 byte
man-Data::Dump::Trace.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 166,836
Visitor ID : :
Visitor IP : 3.144.242.20 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Data::Dump::Trace.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Data::Dump::Trace.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Data::Dump::Trace.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|Data::Dump::Trace.3pm|43|'br══─}─══ |'br══─}─══
)