The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Devel::DTrace::DOF::Section - a DOF section

SYNOPSIS

  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();

DESCRIPTION

METHODS

new($type, $index)

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.

section_type

Returns the section type as the value of the appropriate DOF_SECT_* constant.

dof

Returns the generated DOF. Only valid after generate() has been called.

data

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.

generate

Run the DOF generation routine, returning the length of the data generated.