Class: Cfruby::Processes::ProcessInfo
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Cfruby::Processes::ProcessInfo
- Defined in:
- lib/libcfruby/processes.rb
Overview
A holding object for information about a process. Currently implemented as a simple OpenStruct. Should provide accessor methods for as many of the following as possible (listed in order of importance):
- pid
-
unique process id
- program
-
the name or commandline of the program
- username
-
the username of the user running the program
- flags
-
process flags (zombie, jailed, etc)
- starttime
-
when the program was started
- runtime
-
how long the program has been running (cpu time)
- cpu (%)
-
percentage of cpu being used
- mem (%)
-
percentage of memory being used
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
45 46 47 |
# File 'lib/libcfruby/processes.rb', line 45 def to_s() return(self.program) end |