Devel::DTrace::DOF::Section - a DOF section
my $index = 0; my $type = DOF_SECT_PROBES; my $sec = Devel::DTrace::DOF::Section->new($type, $index) my $probes = ... ; $sec->data($probes); my $length = $sec->generate(); my $dof = $sec->dof();
Constructor. Takes $type, which is one of the DOF_SECT_* constant, and $index, the index of this section in the DOF. Returns an empty Devel::DTrace::DOF::Section object.
$type
$index
Returns the section type as the value of the appropriate DOF_SECT_* constant.
Returns the generated DOF. Only valid after generate() has been called.
Set or get the DOF data structure. This is the data used to populate the DOF, and its structure is dependent on the section type.
Run the DOF generation routine, returning the length of the data generated.
To install Devel::DTrace::Provider, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::DTrace::Provider
CPAN shell
perl -MCPAN -e shell install Devel::DTrace::Provider
For more information on module installation, please visit the detailed CPAN module installation guide.