lib/hawatel_ps/linux/proc_table.rb
# Return attributes of searched process based on pid
#
# @example
#  search_by_pid(1761)
#
# @param [Integer] pid of process
# @return [ProcInfo] hash with process attributes
Return attributes of searched process based on pid
Return attributes of searched process based on pid
def search_by_pid(pid)
          refresh
          @proc_table.each do |process|
            return process if process.pid.to_s == pid.to_s
          end
          return nil
        end
def search_by_pid ( pid ) refresh @proc_table . each do | process | return process if process . pid . to_s == pid . to_s end return nil end
Return attributes of searched process based on pid
Return attributes of searched process based on pid
hash with process attributes
hash with process attributes
ProcInfo
pid
pid of process
pid of process
example
None