modulereview
rob_au
<p>
<font size="+1"><b>Why use Proc::ProcessTable?</b></font><p>
<p>
This module implements platform-independent methods for obtaining information on process execution on a system from the <code>/proc</code> file system by filling a <code>procstat</code> structure for the <code>/proc/XXX/stat</code> file relating to a process. This process execution information includes real and effective group and user IDs, parent and group process IDs, process priorities, CPU and memory utilisation and process TTYs. The supported process attributes available via this module vary from platform to platform as a result of the changes in platform procstat structs - Supported attributes for each platform are described in the README file for each platform.<p>
The delivery of this process information by [cpan://Process::ProcessTable] allows you to do away with the ugly external shell calls to utilities such as <code>ps</code>.<p>
<p>
<font size="+1"><b>How to use Proc::ProcessTable?</b></font><p>
<p>
The documentation for the [cpan://Proc::ProcessTable] module is excellent and usage of this module is very simple with only three methods exported by default - <code>new</code> (create new ProcessTable object), <code>fields</code> (returns a list of the field names/attributes supported by the module on the current architecture) and <code>table</code> (reads the process table and returns an array of process information).<p>
Examples of the usage of [cpan://Proc::ProcessTable] module submitted previous by myself on this site can be seen [id://115098|here] and [id://121674|here].<p>
<p>
Framework for obtaining and extracting information on process execution