Sys::Trace::Results - Results of a Sys::Trace
This object holds the results of a trace performed via Sys::Trace.
Initialises the object from a given trace. Normally called via the results method of Sys::Trace.
results
Returns the number of calls that are contained within this trace.
Return a list of all the calls. The system call name will be filtered against $call if provided (either a string or a Regexp reference).
$call
Each element in the list will be a hash reference of the form:
{ name => "/path/to/file", # filename, if relevant call => "open", # system call name systime => 0.000012, # time spent in call walltime => 1277664686.665232 # args => [ ... ] # arguments errno => "ENOENT" # errno, if error occurred strerror => "No such file or directory", # error string, if returned pid => 1234, # pid being traced return => -1 }
Return a list of files that were referenced by the system calls in this trace, optionally filtering on $path.
This is currently very basic, this module should provide the ability to perform analysis.
Sys::Trace for copyright, etc.
To install Sys::Trace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Trace
CPAN shell
perl -MCPAN -e shell install Sys::Trace
For more information on module installation, please visit the detailed CPAN module installation guide.