SUMMARY: CONSTR | METHOD | DETAIL: CONSTR | METHOD |
Permission is granted to use this software under the same terms as Perl itself. Refer to the Perl Artistic License for details.
Unless otherwise noted, $self
is the object instance variable.
Constructor Summary |
---|
open($file)
Opens the specified filename, or, if no filename is specified, the filename specified by the DEVEL_RINGBUF_FILE environment variable, using Devel::RingBuffer |
Method Summary |
---|
getPIDTIDs()
Get the current list of PID:TID keys |
getSignal(@pid_tid_list)
Get the ringbuffer per-thread signal control variable value for the specified PIDs or PID:TIDs |
getSingle()
Get the current ringbuffer global single control variable value |
getTrace(@pid_tid_list)
Get the ringbuffer per-thread trace control variable value for the specified PIDs or PID:TIDs |
refresh()
Refresh the PID/TID buffer map |
setSignal(@pid_tid_list, $value)
Set the ringbuffer per-thread signal control variable value for the specified PID or PID:TID |
setSingle($value)
Set the current ringbuffer global single control variable value |
setTrace(@pid_tid_list, $value)
Set the ringbuffer per-thread trace control variable value for the specified PID or PID:TID |
trace($trace_cb, @pid_tid_list)
Dump the mmap'ed ringbuffer file contents |
Constructor Details |
---|
open($file)
$file
- name of the mmap()'d file (or namespace on Win32)
Method Details |
---|
getPIDTIDs()
getSignal(@pid_tid_list)
@pid_tid_list
- optional list of PIDs, or "PID:TID", keys to get signal for;
if no keys are specified, all keys are used
getSingle()
getTrace(@pid_tid_list)
@pid_tid_list
- optional list of PIDs, or "PID:TID", keys to get trace for;
if no keys are specified, all keys are used
refresh()
setSignal(@pid_tid_list, $value)
@pid_tid_list
- optional list of PIDs, or "PID:TID", keys to set signal on;
if no keys are specified, all keys are used
$value
- new value to assign to signal
setSingle($value)
$value
- new value to assign to single
setTrace(@pid_tid_list, $value)
@pid_tid_list
- optional list of PIDs, or "PID:TID", keys to set trace on;
if no keys are specified, all keys are used
$value
- new value to assign to trace
trace($trace_cb, @pid_tid_list)
$trace_cb
- callback to which ringbuffer contents are posted
@pid_tid_list
- optional list of PID's, or "PID:TID" keys
for which ringbuffer contents are to be returned;
if none are specified, all PID/TID keys are used;
if only a PID is specified, all threads for the process
are used.