DBD-Sys

 view release on metacpan or  search on metacpan

lib/DBD/Sys/Plugin/Any/Procs.pm  view on Meta::CPAN

package DBD::Sys::Plugin::Any::Procs;

use strict;
use warnings;
use vars qw($VERSION @colNames);

use base qw(DBD::Sys::Table);

=pod

=head1 NAME

DBD::Sys::Plugin::Any::Procs - provides a table containing running processes

=head1 SYNOPSIS

  $processes = $dbh->selectall_hashref("select * from procs", "pid");

=head1 ISA

  DBD::Sys::Plugin::Any::Procs
  ISA DBD::Sys::Table

=cut

$VERSION = "0.102";
@colNames = (
              qw(uid gid euid egid pid ppid pgrp sess priority ttynum flags),
              qw(fulltime ctime virtsize rss wchan fname start),
              qw(pctcpu state pctmem cmndline ttydev)
            );

my $haveProcProcessTable;

my %knownCols;

=head1 DESCRIPTION

This module provides the table C<procs> for any operating system (which is
supported by Proc::ProcessTable).

=head2 COLUMNS

=head3 uid

UID of process

=head3 gid

GID of process
 
=head3 euid

Effective UID of process

=head3 egid

Effective GID of process

=head3 pid

Process ID
 
=head3 ppid

Parent process ID
 
=head3 pgrp

Process group
 
=head3 sess

Session ID

=head3 cpuid

CPU ID of processor running on        # FIX ME!
 
=head3 priority

Priority of process
 
=head3 ttynum

TTY number of process
 
=head3 flags

Flags of process
 
=head3 fulltime

User + system time
 
=head3 ctime

Child user + system time
 
=head3 timensec

User + system nanoseconds part        # FIX ME!
 
=head3 ctimensec

Child user + system nanoseconds       # FIX ME!
 
=head3 qtime

Cumulative cpu time                   # FIX ME!
 
=head3 virtsize

Virtual memory size (bytes)
 
=head3 rss



( run in 0.920 second using v1.01-cache-2.11-cpan-97f6503c9c8 )